在Oracle中用于判断是否等于null,不是用=实现的,而是用is null或者用is not null 实现的。
NULL不能通过=和!=判断相等,要用is null 和 is not null
同意楼上的各位大大 null 在oracle中,要用is null 和is not null 来判断
select * from where 字段 is not null;
oracle里面null不能与任何值除了自己。 可以试试 select * from dual where null is null; select * from dual where null != null; select * from dual where null is not null; select * from dual where null = ''; select * from dual where null != ''; 看玩这个你就会明白了
同意楼上的各位大大
null 在oracle中,要用is null 和is not null 来判断
可以试试
select * from dual where null is null;
select * from dual where null != null;
select * from dual where null is not null;
select * from dual where null = '';
select * from dual where null != '';
看玩这个你就会明白了