> 1055 - Expression #2 of SELECT list is not in GROUP BY clause and contains
2020-04-27 19:28
1036 查看
使用查询:
[code]select @@global.sql_mode
结果:
[code]ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE, NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
centos下修改:/etc/my.cnf文件
去掉ONLY_FULL_GROUP_BY,重新设置值
在末尾添加
[code][mysqld] sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
重启MySQL服务
[code]service mysqld restart
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- ERROR 1055 (42000): Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregate
- [Err] 1055 - Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated colum
- 【有效解决MySQL问题1】Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated....
- Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'party.uc.
- #1055 - Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column this i
- #1055 - Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column this i
- [Err] 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated colum
- ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains
- mysql8.0.17异常Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated colum
- [Err] 1055 - Expression #4 of SELECT list is not in GROUP BY clause and contains nonaggregated colum
- 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 'lo
- ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregate
- MySQL: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sss
- #1055 - Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column this i
- ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregate
- [Err] 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated colum
- jdbc4.MySQLSyntaxErrorException:Expression #2 of SELECT list is not in GROUP BY clause and contains
- mysql5.7 报错1055:Expression #1 of SELECT list is not in GROUP BY clause and contains non
- MySQL: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column '