1. AND条件:
SELECT * FROM your_table WHERE column1 > 100 AND column2 = 'value';
2. OR条件:
SELECT * FROM your_table WHERE column1 > 100 OR column2 = 'value';
3. 复杂的复合条件:
SELECT * FROM your_table WHERE (column1 > 100 AND column2 = 'value') OR column3 IS NULL;
4. 使用NOT进行否定:
SELECT * FROM your_table WHERE NOT (column1 > 100 AND column2 = 'value');
复合条件使得你可以根据多个条件的组合来灵活地筛选数据,以满足更复杂的查询需求。
转载请注明出处:http://www.pingtaimeng.com/article/detail/11733/OceanBase