判断数据库字段不为空的语句

时间:2021-01-11 11:16:56   收藏:0   阅读:0

判断数据库字段不为空的语句:

判断 数据库字段 :不为空、 不为null 、不为" "

——使用语句: trim(columnA  ) != ‘‘

select * from table where module=‘XX‘  and trim(columnA  ) != ‘‘

 

(columnA  is not null   无法过滤 字段为空的情况。)

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!