排除某字段某属性的四种方法
查找除复旦大学的用户信息
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_profile where university != '复旦大学' # SELECT device_id,gender,age,university FROM user_profile WHERE university NOT IN ('复旦大学'); SELECT device_id,gender,age,university FROM user_profile WHERE university NOT LIKE '复旦大学';