SQL> select * from dual where 'a' not in ('b', null); 未选定行not in 相当于 !=SQL> select * from dual where 'a' != 'b' and 'a' != null;
有null参与的运算:
所以在not in子查询中有null值的时候,则不会返回数据。
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3