Mysql查询不为null值和字段为null 阿星小栈
在mysql中,查询某字段为null空时,切记不可用 = null,而是 is null,不为空则是 is not null 而不是 != null
select * from table where column is null;
select * from table where column is not null;
版权声明:本文为dereckbu原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。