假设建user表时有name字段为default null;查询name为null的方法:
select * from user where name=!’1’ or name is null;直接写成name is null为条件不行。
查询数据库中为null字段的数据
最新推荐文章于 2022-11-21 15:37:52 发布
假设建user表时有name字段为default null;查询name为null的方法:
select * from user where name=!’1’ or name is null;直接写成name is null为条件不行。