思路:使用WHERE
关键字添加限定条件
代码解释:从表user_profile
中取出列device_id
、university
,并限定学校为“北京大学”字符串
SELECT device_id, university FROM user_profile WHERE university = '北京大学';
题目:https://www.nowcoder.com/practice/7858f3e234bc4d85b81b9a6c3926f49f?tpId=199&tags=&title=&difficulty=0&judgeStatus=0&rp=0&sourceUrl=%2Fexam%2Foj%3Fpage%3D1%26tab%3DSQL%25E7%25AF%2587%26topicId%3D199