题解 | #用where过滤空值练习#

判断某列不为空: 1、 is not null

select device_id,gender,age,university
from user_profile
where age is not null;

2、 not...is null

select device_id,gender,age,university
from user_profile
where not age is null;

3、where age

select device_id,gender,age,university
from user_profile
where age;
全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务