当前位置: 代码迷 >> Sql Server >> 如果用 exists 代替 in 那 not in 是否也有代替呢?解决思路
  详细解决方案

如果用 exists 代替 in 那 not in 是否也有代替呢?解决思路

热度:331   发布时间:2016-04-27 16:20:25.0
如果用 exists 代替 in 那 not in 是否也有代替呢?
如题

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