子查询中空值问题

如今要查询 不是经理的员工姓名web select e.ename from emp e where e.empno not in (select distinct mgr from emp); 结果为空行 出现这种状况的缘由有两个: - - -子查询中返回值中包含有空值; - - -NOT IN操做符对空值不忽略。 NOT IN操做符至关于<> ALL,即除了列表值的全部值,就包括了空值NULL
相关文章
相关标签/搜索