214月 2017 Sql order by 和 group BY一起使用时需要注意 by 爱偷吃猫的鱼 ORDER BY 子句中的列必须包含在聚合函数或 GROUP BY 子句中。 slect * from table group by class,id order by id slect * from table group by class,id order by class Posted in: MYSQL ⋅ Tagged: mysql