表信息is nullis not null表信息表数据如下 is null查询没有分类的商品 select * from product where category_id is null;效果 is not null查询有分类的商品 select * from product where category_id is not null; 效果