题解 | #查找除复旦大学的用户信息#

查找除复旦大学的用户信息

https://www.nowcoder.com/practice/c12a056497404d1ea782308a7b821f9c

select device_id,gender,age,university
from user_profile
where university != '复旦大学';

select device_id,gender,age,university

from user_priofile

where university not like '复旦大学' #模糊查询 列值中不包含复旦大学 四个字

where university not in('复旦大学') #in +集合,集合中放的是列值

where university !='复旦大学' != 不等于

全部评论

相关推荐

求面试求offer啊啊啊啊:这个在牛客不是老熟人了吗
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务