表连接注意left join on与where的区别: select * from dept; select * from emp; select * from emp a right outer join dept b on a.deptno=b.deptno where a.empno is null; select b.deptno,a.* from emp a right join dept b on a.deptno=b.deptno and a.empno is null; 这里注意…