题解 | #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 和 not in 的使用
- in (option1,option2,……) 满足option中的任意一个,就算满足条件,则可查询出来
- not in (option1,option2,……) 满足option中的任意一个,就算不满足条件。要想查询出来,需要都不满足