首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

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

2012-10-14 
mysql中查询字段为null或者不为null在mysql中,查询某字段为空时,切记不可用 null,而是 is null,不为空则

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;

热点排行