首先a,b两张表的表结构要一致,否则没有意义!!!
SELECT * FROM b
WHERE NOT EXISTS
(
SELECT *
FROM a
WHERE a.xxx = b.xxx
AND a.yyy = b.yyy
AND a.zzz = b.zzz
)
首先a,b两张表的表结构要一致,否则没有意义!!!
SELECT * FROM b
WHERE NOT EXISTS
(
SELECT *
FROM a
WHERE a.xxx = b.xxx
AND a.yyy = b.yyy
AND a.zzz = b.zzz
)