数据库中查询表中某个字段有值的记录

-- 查询tablename表中fieldname字段有值的记录(不为null且不为空字符串)
select fieldname from tablename where fieldname is not null and fieldname <> ''
posted @ 2020-03-13 21:49  知音12138  阅读(597)  评论(0编辑  收藏  举报