【有效解决MySQL问题1】Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated....
2019-08-04 15:35
806 查看
版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/wu_lw829/article/details/98470152
然后 ‘保存’ ,最后‘ 重新启动MySQL服务’(如下)可以解决此类问题。
执行后:
参考文档:
【解决MySQL问题1】Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated…
MySQL 5.7.5后only_full_group_by成为sql_mode的默认选项之一,这可能导致一些sql语句失效。比如下表games:执行语句:
select group_id,name from games group by group_id返回(错误):Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘game.name’ which is not… 解决方法:
在配置文件 my.ini 中,添加
sql_mode=,具体如下:
然后 ‘保存’ ,最后‘ 重新启动MySQL服务’(如下)可以解决此类问题。
执行后:
参考文档:
相关文章推荐
- MySQL: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sss
- 【问题解决】Expression #30 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'zxj
- [mysql] Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'lo
- 解决MySql查询语句报Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre异常的问题
- MYSQL:Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column
- MySQL: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column '
- Mysql解决SELECT list is not in GROUP BY clause and contains nonaggregated column 问题
- Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'party.uc.
- mysql遇见Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre的问题
- mysql:Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column
- Docker安装MySQL遇见Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre的问题
- Docker安装MySQL遇见Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre的问题
- mysql遇见Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre的问题
- mysql遇见Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre的问题
- MySQL报错“Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre”
- MySQL报错“Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre”
- [Err] 1055 - Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated colum
- Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column
- [Err] 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated colum
- #1055 - Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column this i