sql提示1055 不让你group by

是不是突然写好的sql语句 部署上去就

 

Expression #2 of SELECT list is not in GROUP BY clause and contains
nonaggregated column ‘sss.month_id’ which is not functionally
dependent on columns in GROUP BY clause; this is incompatible with
sql_mode=only_full_group_by

因为不让你group by,所以你得在mysql里这样

1. select @@global.sql_mode
1.set @@global.sql_mode
='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';

全局的mysql配置,放心吧

posted @ 2021-10-15 12:07  久箫寄淮竹  阅读(57)  评论(0)    收藏  举报