select * from A where A.Col1 not in (select Col1 from B)

解决方案 »

  1.   

    select * from A where A.Col1 not in (select distinct Col1 from B)
      

  2.   

    select * from A into C where A.Col1 not in (select distinct Col1 from B)
      

  3.   

    select * from 表A
        where 第一列列名 not in (select 第一列列名 from 表B)
      

  4.   

    select a.col1 from a,b into c where a.col1<>b.col1
      

  5.   

    SELECT * INTO TEST FROM A WHERE A.COL1 NOT IN (SELECT COL1 FROM B)
      

  6.   

    SELECT * INTO TEST FROM A WHERE A.COL1 NOT IN (SELECT COL1 FROM B)
      

  7.   

    现有A、B两表,要求将A表第一列不同于B表第一列的数据踢出来,并生成一个新表。select * into new_TableName from A where id not in (select id from B)
      

  8.   

    or 创建一个跟A表一样的表Cinsert into C
     select * from A where id not in (select id from B)其中id就是A和B的第一列