MYSQL5.7版本sql_mode=only_full_group_by问题
2017-12-21 19:43
841 查看
方法一:重启后失效
转载于
https://www.cnblogs.com/zhi-leaf/p/5998820.html
具体出错提示:[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 1、查看sql_mode
3、上面是改变了全局sql_mode,对于新建的数据库有效。对于已存在的数据库,则需要在对应的数据下执行:
转载于
https://www.cnblogs.com/zhi-leaf/p/5998820.html
具体出错提示:[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 1、查看sql_mode
select @@[code]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_SUBSTITUTION2、去掉ONLY_FULL_GROUP_BY,重新设置值。
set @@[code]global.sql_mode ='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';[/code]
3、上面是改变了全局sql_mode,对于新建的数据库有效。对于已存在的数据库,则需要在对应的数据下执行:
set sql_mode ='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'
相关文章推荐
- MYSQL5.7版本sql_mode=only_full_group_by问题
- MYSQL5.7版本sql_mode=only_full_group_by问题
- MYSQL5.7版本sql_mode=only_full_group_by问题
- MYSQL5.7版本sql_mode=only_full_group_by问题
- MYSQL5.7版本sql_mode=only_full_group_by问题
- MYSQL5.7版本sql_mode=only_full_group_by问题
- MYSQL5.7版本sql_mode=only_full_group_by问题 5.7就是个坑
- MYSQL5.7版本sql_mode=only_full_group_by问题
- MYSQL5.7版本sql_mode=only_full_group_by问题
- mysql 1055错误的解决办法 【MYSQL5.7版本sql_mode=only_full_group_by问题】
- MYSQL5.7版本sql_mode=only_full_group_by问题
- 解决MySQL 5.7.9版本sql_mode=only_full_group_by问题,this is incompatible with sql_mode=only_full_group_by错误
- MySQL 报错:5.7版本sql_mode=only_full_group_by问题
- MySQL 5.7.9版本sql_mode=only_full_group_by问题
- 解决MySQL 5.7.9版本sql_mode=only_full_group_by问题
- MySQL 5.7.9版本sql_mode=only_full_group_by问题
- MySql版本问题sql_mode=only_full_group_by解决方案
- MySql版本问题sql_mode=only_full_group_by的完美解决方案
- MySQL 5.7版本sql_mode=only_full_group_by问题
- MySQL 5.7.9版本sql_mode=only_full_group_by问题