日期:2014-05-16  浏览次数:20962 次

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;