题目链接:SQL1 查询所有列

# select * from user_profile; 不推荐(适用于自己看看表)
select id, device_id, gender, age, university, province from user_profile;
题目链接:SQL2 查询多列

select device_id, gender, age, university from user_profile;
题目链接:SQL3 查询结果去重

# 方法一:
select distinct university from user_profile;
# 方法二:
select university from user_profile group by university
题目链接:SQL4 查询结果限制返回行数

select device_id from user_profile limit 2;
题目链接:SQL5 将查询后的列重新命名

select device_id as user_infos_example
from user_profile
limit 2;