题解 | #Where in 和Not in#

Where in 和Not in

https://www.nowcoder.com/practice/0355033fc2244cdaa09b2bd6e794c762

select device_id,gender,age,university,gpa
from user_profile
where university in('北京大学','复旦大学','山东大学');

in (常量1,常量2,常量3,.....)

表示返回的结果等于集合 (常量1,常量2,常量3,.....)中的某个值

not in

表示返回的结果不为等于集合 (常量1,常量2,常量3,.....)中的某个值时,符合要求

全部评论

相关推荐

04-10 08:14
门头沟学院 Java
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务