思路:要取出的列是表的其中一些列,所以要明确命名。
代码解释:从表user_profile
中取出列 device_id
、gender
、age
、university
SELECT device_id, gender, age, university FROM user_profile;
题目:https://www.nowcoder.com/practice/499b6d01eae342b2aaeaf4d0da61cab0?tpId=199&tags=&title=&difficulty=0&judgeStatus=0&rp=0&sourceUrl=%2Fexam%2Foj%3Fpage%3D1%26tab%3DSQL%25E7%25AF%2587%26topicId%3D199