select a.* from a left join b where a.a=b.a and a.b=b.b and a.c=b.c where b.a is null

解决方案 »

  1.   

    --错了·
    select a.* from a left join b on a.a=b.a and a.b=b.b and a.c=b.c where b.a is null
      

  2.   

    SELECT *
    INTO C
    FROM A
    WHERE EXISTS (SELECT * FROM B)
      

  3.   

    select a.*  from tablea,tableb  where tablea.a<>tableb.a and tablea.b<>tableb.b and tablea.c<>tableb.c
      

  4.   

    select * into c from a where a not in(select a from b ) and b not in(select b from b) and c not in(select c from b)