第三章:数据查询语言DQL-使用distinct去除重复数据

直接学习:https://edu.csdn.net/course/play/27328/370700
使用distinct去除重复数据
distinct用于在查询中返回列的唯一不同值(去重复),支持单列和多列;
1、select distinct username from footprint;
2、select distinct city from footprint;
3、select distinct username ,city from footprint;

发布了107 篇原创文章 · 获赞 6 · 访问量 968

猜你喜欢

转载自blog.csdn.net/weixin_43597208/article/details/105460799