server sql 比较两个表数据的差异

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

 

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

 

posted @ 2022-09-08 10:33  张岂逢  阅读(437)  评论(1)    收藏  举报