oracle怎样判断数据是否为空
时间:2022-01-05 16:14
在oracle中,可以利用is关键字判断数据是否为空,因为null在sql中被看作特殊符号,所以不能使用等号,语法为“select * from table where column is null”。 本教程操作环境:Windows10系统、Oracle 11g版、Dell G3电脑。 oracle怎样判断数据是否为空 oracle判断一个字段为空 比如 对于这种情况,因为表里存的是'',其实是没有内容的,要查询这个字段,不能直接使用 sql中判断非空不能用等号,因为null在sql中被看作特殊符号,必须使用关键字 is和not 应该如此使用: 或者: 推荐教程:《Oracle教程》 以上就是oracle怎样判断数据是否为空的详细内容,更多请关注gxlsystem.com其它相关文章!insert into table a (a1,b1)values("a1",'');
select *
from a
where b1='';
select * from A where b1 is null
select * from A where b1 is not null