[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause 的问题 MySQL
程序员文章站
2022-06-05 21:06:29
问题:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which ......
问题:[err] 1055 - expression #1 of order by clause is not in group by clause and contains nonaggregated column 'information_schema.profiling.seq' which is not functionally dependent on columns in group by clause; this is incompatible with sql_mode=only_full_group_by
解决方案:
select version(),
@@sql_mode;set sql_mode=(select replace(@@sql_mode,'only_full_group_by',''));
完美的解决方案是:
1 show variables like "sql_mode"; 2 3 set sql_mode=''; 4 set sql_mode='no_engine_substitution,strict_trans_tables';
推荐阅读
-
[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause 的问题 MySQL
-
解决大于5.7版本mysql的分组报错Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated
-
解决大于5.7版本mysql的分组报错Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'userinfo.
-
[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause 的问题 MySQL
-
解决大于5.7版本mysql的分组报错Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated
-
解决大于5.7版本mysql的分组报错Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'userinfo.
-
MySQL - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column
-
1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column