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

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

 

 

 

是is null 不是= null

posted @ 2018-09-13 10:32  wangbiubiu  阅读(10811)  评论(0编辑  收藏  举报