1.错误信息: [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
2.解决办法:在Navicat中输入
SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
本文详细介绍了在使用MySQL时遇到的'ONLY_FULL_GROUP_BY'错误,此错误源于SQL语句中的GROUP BY子句与ORDER BY子句不匹配。文章提供了一种简单有效的解决方法,即通过修改sql_mode来禁用ONLY_FULL_GROUP_BY模式,从而避免此类错误的发生。
9750

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



