可以啊,各个字段分别用这个关键字作为判断条件。比如
select * from tabname
where f1 in ('A', 'B', 'C')
and f2 not in ('MM', 'QQ');
可以用于多个字段。比如
select * from table_name1 where (字段1,字段2)not in(
select 字段3,字段4 from table_name2
)
这个写法在ORACLE DB2中都可以
where col1 in (1,2,3) or col2 in (1,2,3)