【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' whi
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章