通过语句 select * from A where not exists(select 1 from B where B.col1 = A.col1 and B.col2 = A.col2 and B.col3 = A.col3) 来找出A表中不存在于B表的记录
通过语句 select * from B where not exists(select 1 from A where B.col1 = A.col1 and B.col2 = A.col2 and B.col3 = A.col3) 来找出B表中不存在于A表的记录
比较两个表中不同的数据
最新推荐文章于 2022-11-28 23:19:07 发布