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

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

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

猜你喜欢

转载自www.cnblogs.com/feiyuhuo/p/10748098.html
今日推荐