题解 | #查找除复旦大学的用户信息#
查找除复旦大学的用户信息
https://www.nowcoder.com/practice/c12a056497404d1ea782308a7b821f9c
SELECT device_id, gender, age, university FROM user_profile #WHERE NOT university = "复旦大学";
解法1:
WHERE NOT university = "复旦大学";
解法2:
WHERE university != "复旦大学"; WHERE university <> "复旦大学";
解法3:
WHERE university NOT IN("复旦大学");
解法4:
WHERE university not like '%复旦大学%';