SELECT list is not in GROUP BY clause and contains
2019-07-31 23:45
1316 查看
查询mysql 相关mode
select @@global.sql_mode;
可以看到模式中包含了ONLY_FULL_GROUP_BY,只要没有这个配置即可。
我的Mysql版本是5.7.21,默认是带了ONLY_FULL_GROUP_BY模式。
ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,
ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
2.重设模式值
set @@global.sql_mode=
STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE, <br/>ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION;
相关文章推荐
- ERROR 1055 (42000): 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 GROUP BY clause and contains nonaggregate
- MySQL报错“Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre”
- #1055 - Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column this i
- mysql遇见Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre的问题
- MySQL关于"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
- jdbc4.MySQLSyntaxErrorException:Expression #2 of SELECT list is not in GROUP BY clause and contains
- Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column
- mysql:Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column
- 解决MySql查询语句报Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre异常的问题
- Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'party.uc.
- [Err] 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated colum
- Mysql解决SELECT list is not in GROUP BY clause and contains nonaggregated column 问题
- Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre
- #1055 - Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column this i
- MySQL: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column '
- Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'userinfo.
- mysql5.7 报错1055:Expression #1 of SELECT list is not in GROUP BY clause and contains non
- ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains