1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains解决
程序员文章站
2022-07-15 12:26:52
...
今天在开发过程中,由于之前项目已经开发完成,完成了数据库迁移,今天在操作的时候,根据分组求和的时候,出现了一个错误:1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'btc.a.applicant_unit' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
一番操作之后,终于找出了解决方案:
在MySQL下输入如下语句
set sql_mode ='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
然后重新运行语句,就可以正常查询了。
另外还有更完整的解决方案,链接如下:
花儿为何那样红的博客
上一篇: 报错 1055 - Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated
下一篇: idea报错 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre
推荐阅读
-
[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从5.6升级到5.7后出现 Expression #1 of ORDER BY clause is not in SELECT list,this is incompatible with DISTINCT
-
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregate
-
ERROR 1055 (42000): Expression #1 of SELECT list is not in
-
ERROR 1055 (42000): Expression #3 of SELECT list is not in GROUP BY clause ... 的错误
-
报错 1055 - Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated
-
1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains解决
-
idea报错 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre