sql 如何查询 空值的字段?
select count(id) from student where ISNULL(pwd,'')='' 这样 无论pwd=''或者pwd为null都可以查到
查询非空字段,只需:ISNULL(pwd,'')!=''
最后更新:2017-04-02 06:51:25
select count(id) from student where ISNULL(pwd,'')='' 这样 无论pwd=''或者pwd为null都可以查到
查询非空字段,只需:ISNULL(pwd,'')!=''
最后更新:2017-04-02 06:51:25