ysql> select * from tb_emp_bigdata group by id%10 limit 150000;
ERROR 1055(42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'explain_show.tb_emp_bigdata.id' which is not functionally dependent on columns in GROUP BY clause;
【MySQL】ERROR 1055 (42000) ROUP BY clause this is incompatible with sql_mode=only_full_group_by
1.背景我本地mysql 8执行了一个SQL报错ysql> select * from tb_emp_bigdata group by id%10 limit 150000;ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'explain_show.tb_emp_bigdata.id' which is not functio.