
sql中怎么查询其中的值不为空的数据?
1个回答
展开全部
非空值数据: select count(*) from YourTable where YourColumnName is not null。
空值数据: select count(*) from YourTable where YourColumnName is null或者字段 is null 或者 isnull(字段,'')='' 一般用后者 可以把 null 和 '' 都能查。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询