om dual where 1 is null; select 'true' from dual where null is null; 当你使用IN时,相当于你告诉SQL接受一个值,并将它与某个清单中使用=的每一个值或一组值进行比较。只要存在了任何NULL值,就不会返回任何行,纵使两个值都是NULL也不行。 select 'true' from dual where null in (null); select 'true' from dual where (null,null) in ((null,null)); select 'true' from dual where (1,null) in ((1,null)); 一个IN从功能上等同于=ANY子句: select 'true' from dual where null = ANY (null); select 'true' from dual whe页码:[1] [2] [3] [4] [5] [6] 第2页、共6页 |