mysql错误: ORDER BY clause is not in GROUP BY clause and contains nonaggregated column
原因:MySQL ONLY_FULL_GROUP_BY 模式 在 GROUP BY 查询时,所有非聚合列必须在 GROUP BY 语句中。你的 ORDER BY s.prov_code ASC 未出现在 GROUP BY 语句里,导致 MySQL 抛出错误。✅ 解决方案方法 1(推荐): 在 GRO