日期:2014-05-18 浏览次数:20508 次
select b.* from b where not exists(select 1 from a where a.id=b.id and a.bm=b.bm)
------解决方案--------------------
select * from a where not exists(select 1 from tb where id=a.id and bm=a.bm)
------解决方案--------------------
select * from b except select * from a
------解决方案--------------------
select * from A where checksum(id, bm) not in (select checksum(id, bm)from B)
------解决方案--------------------
select * from B WHERE NOT EXISTS (SELECT 1 FROM A WHERE id = B.id AND bm = B.bm)
------解决方案--------------------
select * from a where checksum(*) not in(select checksum(*) from b)