在Oracle性能优化中,我们比较了两个查询语句:语句A是SELECT dname,deptno FROM dept WHERE deptno NOT IN(SELECT deptno FROM emp);语句B是SELECT dname,deptno FROM dept WHERE NOT EXISTS(SELECT deptno FROM emp WHERE dept.deptno = emp.deptno)。