日期:2014-05-16 浏览次数:20765 次
select * from a where id not in ( select a_id from b )
------解决方案--------------------
select a.* from a left join b on a.id=b.id where b.id is null
------解决方案--------------------
select * from a where not exists (select 1 from b where id=a.id)