Home  >  Article  >  Backend Development  >  distinct和group by 的效率比较?

distinct和group by 的效率比较?

WBOY
WBOYOriginal
2016-06-23 14:14:281774browse

不是区别哈,是效率,说说为什么distinct或者group by效率就高啊,不是很明白。。。。。。。。 


回复讨论(解决方案)

distinct 和 group by 是不同的机制,分别使用在不同的场景
所以不能做效率对比

distinct 和 group by 是不同的机制,分别使用在不同的场景
所以不能做效率对比

各自机制和场景能分享下经验吗?

有没有知道的指教一下。。。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn