题解 | #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 ('北京大学','复旦大学','山东大学');

where university='北京大学' or  university='复旦大学' or university='山东大学';

不用and

and要查找同时满足这三个大学的学生

全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务