题解 | #查询结果去重#

查询结果去重

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

二种方式
1.
distinct 关键字
select distinct university from user_profile
distinct去重,放在列的前面使用。
2.
分组
SELECT
university
from user_profile
group by university
以分组来筛选出去重的结果

全部评论

相关推荐

点赞 评论 收藏
分享
评论
552
46
分享

创作者周榜

更多
牛客网
牛客企业服务