SQL高效查询两个表不同的数据

逻辑相对复杂,但是速度最快:

select * from B where (select count(1) from A where A.ID = B.ID) = 0

 

posted @ 2019-04-22 06:01  Nullobj  阅读(26512)  评论(3编辑  收藏  举报