select name, group_id from game group by group_id 报错
阿萨德执行 2020-03-25 04:46:11 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'cloud.game.name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
为什么会报错呢
给group_id 加上唯一性索性居然就不报错了
alter table game MODIFY group_id VARCHAR(55) UNIQUE not null;