问题:[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’,’’));

————————————————
版权声明:本文为优快云博主「正在改BUG」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.youkuaiyun.com/Hu531053/article/details/102793482
本文详细介绍了如何解决在MySQL中遇到的[Err]1055错误,该错误通常发生在ORDER BY子句中使用了未在GROUP BY子句中出现的列,且sql_mode设置为only_full_group_by的情况下。通过调整sql_mode参数,可以轻松规避此问题。
9735

被折叠的 条评论
为什么被折叠?



