作者:凌亂的回譩 | 来源:互联网 | 2014-06-09 00:50
mysql中查询字段为null或者不为null在mysql中,查询某字段为空时,切记不可用null,而是isnull,不为空则是isnotnullwww.2cto.comselect*fromtablewherecolumnisnull;select...SyntaxHighli
在mysql中,查询某字段为空时,切记不可用 = null,
而是 is null,不为空则是 is not null
www.2cto.com
select * from table where column is null;
select * from table where column is not null;