题解 | #用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
全部评论

相关推荐

再懒也要睡懒觉:大学4年玩的挺爽的哈😅
点赞 评论 收藏
分享
小牛炒肉:好大的官威居然不是什么官
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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