--try
select a from 表1 T
where not exits (select 1 from 表2 where a=T.A)

解决方案 »

  1.   

    select * from 表1 where a not in(select * from 表2)
    应该没有什么问题吧
      

  2.   

    select 表1.* from 表1,表2 where 表1.a<>表2.a
      

  3.   

    --存在写错了,这样
    select a from @表1 T
    where not exists (select 1 from @表2 where a=T.A)
      

  4.   

    我也觉得不会有问题,
    可以试试select a from 表1 where not exists (select a from 表2)
      

  5.   

    数据对不对,确实对的话,
    尝试zlp的方法。
      

  6.   

    select * from 表1 where a not in(select * from 表2)
    没问题的,你再试试,注意括号
      

  7.   

    应该是select * 而不是select a
      

  8.   

    select a from table01 where a not in(select a from table02)这样写没什么问题的啊
      

  9.   

    用not in没有问题啊。搂主看看数据有问题没有吧