mysql下distinct 和group by的区别

近期关于mysql下distinct 和group by的区别的讨论热度持续攀升,我们通过多方渠道收集整理了相关资讯 ,并进行了系统化的梳理 。若这些内容恰好能为您提供参考,将是我们最大的荣幸。

这两者本质上应该没有可比性,distinct 取出唯一列 ,group by 是分组,但有时候在优化的时候,在没有聚合函数的时候 ,他们查出来的结果也一样。

一、group by

英 [ɡru:p bai] ? 美 [ɡrup ba?] ?

[计][WIN]分组依据

1 、This operator also serves as input to the Group By operator.

该操作符还充当Group By操作符的输入 。

2、Complete the following steps to create and program the Group By operator.?

完成以下步骤 ,创建Group By操作符并对它进行配置。

3、With the appropriate access path, the ORDER BY or GROUP BY requirement can be met without sorting.?

使用恰当的访问路径,无需排序即可满足ORDER BY或GROUP BY需求。

4 、Drag it to the right of the Group By operator.?

将它拖放到Group By操作符的右边 。

二、distinct

英 [dstkt] ? 美 [dstkt] ?

adj.明显的,清楚的;卓越的 ,不寻常的;有区别的;确切的

1、I have distinct memories of him in his last years.?

我清楚地记得他最后几年的情况 。

2 、Another Cup marathon between the two sides is now a distinct possibility.?

双方很可能再进行一场马拉松式的优胜杯比赛。

3 、The photograph showed a distinct image.?

照片显出了明晰的影像。

4、I want a distinct answer to my question.?

我要求对我的问题作出明确的答复 。

关于mysql下distinct 和group by的区别的探讨就到这里,您是否还有其他想了解的内容?欢迎在评论区留言告诉我们,同时别忘了点击关注哦!


http://sell.qieta.com/show-111995033.html
(1)

猜你喜欢

发表回复

本站作者才能评论

评论列表(3条)

  • admin的头像
    admin 2026年08月12日

    我是博瑞号的签约作者“admin”

  • admin
    admin 2026年08月12日

    本文概览:近期关于mysql下distinct 和group by的区别的讨论热度持续攀升,我们通过多方渠道收集整理了相关资讯,并进行了系统化的梳理。若这些内容恰好能为您提供参考,将是我...

  • admin
    用户081211 2026年08月12日

    文章不错《mysql下distinct 和group by的区别》内容很有帮助

联系我们:

邮件:博瑞号@gmail.com

工作时间:周一至周五,9:30-17:30,节假日休息

关注微信