【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.i

你可能感兴趣的:(数据库-mysql)