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;
未经允许不得转载:微信信息发源地 » mysql中查询字段为null或者不为null
select * from table where column is null;
select * from table where column is not null;
未经允许不得转载:微信信息发源地 » mysql中查询字段为null或者不为null
评论前必须登录!
登陆 注册