ORDER BY一定要放到GROUP BY后面 并且 ORDER BY 里面的字段必须包含在GROUP BY 里面 转载于:https://www.cnblogs.com/ttty/p/10231411.html