使用group by 和having之前要记住: 1、当select子句中使用了聚合函数时,需使用group by进行分组 转载于:https://blog.51cto.com/jankie/14674