如题所述
非空值数据: select count(*) from YourTable where YourColumnName is not null。
空值数据: select count(*) from YourTable where YourColumnName is null或者字段 is null 或者 isnull(字段,'')='' 一般用后者 可以把 null 和 '' 都能查。