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

用where过滤空值练习

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

解题思路

where过滤空值,注意不能用等于号,因为null表示不确定,不和任何值相等,只能用is来比较

代码实现

select device_id, gender, age, university 
from user_profile
where age is not NULL
全部评论

相关推荐

醉蟀:你不干有的是人干
点赞 评论 收藏
分享
流浪的神仙:无恶意,算法一般好像都得9硕才能干算法太卷啦
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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