题解 | #用where过滤空值练习#
用where过滤空值练习
https://www.nowcoder.com/practice/08c9846a423540319eea4be44e339e35
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!='' and age <> ''
age!='' and age <> ''两个几乎同时出现,因为为空的时候有可能是什么都没输入,也有可能是输入了空格
查看7道真题和解析