# count(\*) 是聚合函数 如果在聚合函数中使用 orderby 那 排序字段必须是 聚合的结果

**URL:** <https://www.shiqidu.com/t/topic/1104>\
**Category:** 综合\
**Created:** [2016 年12 月 25 日 06:59 UTC](https://www.shiqidu.com/t/topic/1104 "2016-12-25T06:59:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![Leon](https://www.shiqidu.com/user_avatar/www.shiqidu.com/leon/32/5_2.png) [@Leon](https://www.shiqidu.com/u/Leon)\
发布日期： [2016 年12 月 25 日 06:59 UTC](https://www.shiqidu.com/t/topic/1104/1 "2016-12-25T06:59:49Z")

</div>

count(\*) 是聚合函数 如果在聚合函数中使用 orderby 那 排序字段必须是 聚合的结果
