题解 | #用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;