判断数据库字段不为空的语句:
判断 数据库字段 :不为空、 不为null 、不为" "
——使用语句: trim(columnA ) != ''
select * from table where module='XX' and trim(columnA ) != ''
(columnA is not null 无法过滤 字段为空的情况。)
判断数据库字段不为空的语句:
判断 数据库字段 :不为空、 不为null 、不为" "
——使用语句: trim(columnA ) != ''
select * from table where module='XX' and trim(columnA ) != ''
(columnA is not null 无法过滤 字段为空的情况。)
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。