select name from table1 where name not exist in (select name from table2)

解决方案 »

  1.   

    select * from table1 where name not in(slect name form table2)
      

  2.   

    感觉是第二句。但是第二句有点小问题,要改一下。select * from table1 where name not in (select Distinct name from table2)
      

  3.   

    select * from table1 a
    where  not exists (select * from table2 where 姓名=a.姓名)
    或者
    select * from table1 
    where 姓名 not in(slect 姓名 form table2)
      

  4.   

    select * from table1 
    where name not in(slect name form table2)
      

  5.   

    楼主阿,小心上面的回复阿.他们有好多都将from写成form了,这样会出错的这句才对的:
    select name from table1 where name not in (select name from table2)