你的位置:首页 > 信息动态 > 新闻中心
信息动态
联系我们

SQL9 - 查找除复旦大学的用户信息 - NOT IN()和等用法

2022/8/31 7:15:42

题目链接

戳这里

题解

SELECT device_id, gender, age, university
FROM user_profile
WHERE university != "复旦大学"

# Or 
-- WHERE university NOT IN ("复旦大学") 
-- re university <> "复旦大学"
-- where university != '复旦大学'
-- where not university = '复旦大学'
-- here university NOT IN('复旦大学')
-- where university NOT LIKE '复旦大学'