如题所述
你可以用case语句判断,是空就给个值,不是空显示出来。 这样就可以只是这个字段是否为空。
select case when isnull(字段,‘’)=‘’ then '√' else 字段 end ,* from 表
select case when isnull(字段,‘’)=‘’ then '√' else 字段 end ,* from 表
温馨提示:答案为网友推荐,仅供参考
第1个回答 2017-07-14
select * from 表名 where 字段名 is null