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