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

用where过滤空值练习

http://www.nowcoder.com/practice/08c9846a423540319eea4be44e339e35

法一: age 不为 ''

select device_id,gender,age,university from user_profile where age!='';

法二: is not null表示不为空

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

法三: 年龄不会小于0。

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

相关推荐

notbeentak...:孩子,说实话,选择很重要,可能你换一个方向会好很多,但是现在时间不太够了,除非准备春招
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务