mysql中查詢某個字段不爲空的方法

mysql中查詢字段爲null或者不爲null
mysql

  在mysql中,查詢某字段爲空時,切記不可用 = null或 !=nullsql

如如下語句是錯的,不會查出該字段爲空的記錄spa

  select * from table where column != null;orm

正確應該爲it

    select * from table where column is not null;table

相關文章
相關標籤/搜索