如题

解决方案 »

  1.   

    你可以分开写
    或者用NOT EXISTS代替~
      

  2.   

    不能不过可以这样 select * from A where col1+col2 not in (select col1+col2 from B)
      

  3.   

    不能同时用多个字段只能这样:
    where col1 not in (select col1 from ...)
    and   col2 not in (select col2 from ...)
      

  4.   

    因为:
    一个字段 not in 多个值 可以
    一个值 not in 多个字段 不可以
    所以:
    not in 不能用于多个字段。
      

  5.   


    where b not in ('bbb') or c not in ('bbb')
    ---这种?》
      

  6.   


    where b not in ('bbb') or c not in ('bbb')----
    就是换了,一种 写法!
      

  7.   

    用not existsselect m.* from m where not exists(select 1 from n where id = m.id and code = m.code ....)
      

  8.   

    CHECKSUM或者NOT EXISTS都可以