mysql关键字执行顺序 where > group by > 聚合函数(sum,avg,count等) > having > order by > limit 加上group by 就能够计算不同 dsdm的count值,说明是先分组,再根据分组count求值。