我试图找到表A中但不在表B中的记录.如果只有一列要检查,那么我可以使用
select col_A,col_B,......from A where col_A not in (select Col_A from B).
Run Code Online (Sandbox Code Playgroud)
但我有四列需要检查.
我做了类似这样的事情,虽然有效,但并不是完美的方式
select col_A,col_B,col_C,col_D from A where col_A||col_B||col_C||col_D not in (select col_A||col_B||col_C||col_D from B)
Run Code Online (Sandbox Code Playgroud)
并且在大量数据的情况下返回结果也需要很多时间.
请建议正确的方法.
谢谢.....