select * from user where age is not null; //查询user表年龄不等于空的用户 select * from user where age is null; //查询用户表年龄等于空的用户