日期:2014-05-18  浏览次数:20387 次

如果用 exists 代替 in 那 not in 是否也有代替呢?
如题

------解决方案--------------------
select * from tableA as a where NOT EXISTS(select 1 from tableB as b where b.ID = a.ID)