当前位置: 代码迷 >> Oracle认证考试 >> 求一条高效率的SQL!解决方法
  详细解决方案

求一条高效率的SQL!解决方法

热度:6767   发布时间:2013-02-26 00:00:00.0
求一条高效率的SQL!
有两个表A,B他们通过id相关联.求在A中有的而在B中没有的数据.

我写了一条select * from A where A.id not in(select id from B )


请问有没有更高效率的SQL  谢谢了~
------解决方案--------------------------------------------------------
select * from table_a   a where not exists (select 1 from table_b where id= a.id)
  相关解决方案