Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个相同结构的表 A 和 B。两个表都加载了数据。我只想要两个表的不匹配行。,,
我敢肯定,您可以对每一列进行一些巨大JOIN的查询,然后NOT IN对结果发出 a ,但一个简单实用的解决方案是:
JOIN
NOT IN
diff
根据 RDBMS 供应商,您可能还有其他可以考虑的选项。