问题:mysql高版本中使用group by报错:[Err] 1055 - Expression #6 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘test_project.b.cid’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
简单解决办法:尽量避免使用select ,可以将需要分组的字段在select 中展示出来,不用查询