1、select * from emp1 minus select * from emp2
2、select * from emp1 where EMP_ID not in (select EMP_ID from emp2)
2、select * from emp1 where not exists (select 1 from emp2 where EMP_ID=emp1.EMP_ID)
2、select * from emp1 where EMP_ID not in (select EMP_ID from emp2)
2、select * from emp1 where not exists (select 1 from emp2 where EMP_ID=emp1.EMP_ID)
强烈建议使用方法1 , 并且两个查询最好都指定具体的列(或多列)
方法 2,3 是针对 EMP_ID ,如果要增加多列的比较,还有要更多的条件,有点麻烦。