Oracle中查询某字段不为空

在写SQL语句的时候,查询是否为空用了=null然后报错了,搜索了一下得知:

sql中判断非空不能用等号,因为null在sql中被看作特殊符号,必须使用关键字is或者is not。

 比如:select * from A where info is not null

猜你喜欢

转载自coyotestark.iteye.com/blog/2244992