思路:使用WHERE
关键字添加限定条件,并且注意用 >
符号过滤
代码解释:从表user_profile
中取出列device_id
、gender
、age
、university
,并限定年龄大于24数字
SELECT device_id, gender, age, university FROM user_profile WHERE age > 24;
题目:https://www.nowcoder.com/practice/2ae16bf2fd54415f99344e6024470d57?tpId=199&tags=&title=&difficulty=0&judgeStatus=0&rp=0&sourceUrl=%2Fexam%2Foj%3Fpage%3D1%26tab%3DSQL%25E7%25AF%2587%26topicId%3D199