空值判断(is not null)

 

 

判断为空,在oracle中是无法用 = 号的,是用 is null等语句进行测试,用 = 号不会报错,但是查询结果为0条数据

-- 查询年龄为空的数据
select * from where age is null
-- 查询年龄不为空的数据
select * from where age is not null

 

posted @ 2021-03-17 10:27  万里哥  阅读(338)  评论(0编辑  收藏  举报