在oracle中判断一个字段为空不能使用关系运算符:
例如:select * from ename!=null;
或select * from ename=null;
这样是查不出结果的。
我们可以使用:is null 和 is not null ( 也可以使用is null对其求反:not is null)
select * from ename is null;
在oracle中判断一个字段为空不能使用关系运算符:
例如:select * from ename!=null;
或select * from ename=null;
这样是查不出结果的。
我们可以使用:is null 和 is not null ( 也可以使用is null对其求反:not is null)
select * from ename is null;