数据库查询某一字段为空的数据

select * from t_bus_shop_type WHERE `school_id` = 1 or `school_id` is NULL and `status` != 3;

是is null 不是= null

猜你喜欢

转载自www.cnblogs.com/wangbiubiu/p/9639047.html