Home >Database >Mysql Tutorial >mysql中查询字段为null或者不为null_MySQL

mysql中查询字段为null或者不为null_MySQL

WBOY
WBOYOriginal
2016-06-01 13:48:071637browse

bitsCN.com
mysql中查询字段为null或者不为null 在mysql中,查询某字段为空时,切记不可用 = null,而是 is null,不为空则是 is not null   select * from table where column is null; select * from table where column is not null;
  bitsCN.com

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn