题解 | #查询结果去重#

查询结果去重

http://www.nowcoder.com/practice/82ebd89f12cf48efba0fecb392e193dd

两种思路

第一种:使用distinct(关键词distinct用于返回唯一不同的值)

select distinct university from user_profile;

第二种:使用group by按照university进行分组

select university from user_profile group by university;
全部评论

相关推荐

牛客52811839...:电商项目名字改一下,烂大街了
点赞 评论 收藏
分享
评论
100
9
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务