MySQL 5.7.9版本sql_mode=only_full_group_by问题 用到GROUP BY 语句查询时com.mysql.jdbc.exceptions.jdbc4.MySQLSyn
来源:互联网 发布:隐藏手机号打电话软件 编辑:程序博客网 时间:2024/06/05 16:32
MySQL 5.7.9版本sql_mode=only_full_group_by问题
用到GROUP BY 语句查询时com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'col_user_6.a.START_TIME' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by错误
解决方法 :执行SET GLOBAL sql_mode = ''; 把sql_mode 改成非only_full_group_by模式。验证是否生效 SELECT @@GLOBAL.sql_mode 或 SELECT @@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';
阅读全文
0 0
- MySQL 5.7.9版本sql_mode=only_full_group_by问题 用到GROUP BY 语句查询时com.mysql.jdbc.exceptions.jdbc4.MySQLSyn
- MySQL 5.7版本sql_mode=only_full_group_by问题
- mysql查询中group by语句中出现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 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解决方案
- com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException问题
- 解决MySQL 5.7.9版本sql_mode=only_full_group_by问题,this is incompatible with sql_mode=only_full_group_by错误
- sql_mode=only_full_group_by引起group by查询报错问题
- MySQL 报错:5.7版本sql_mode=only_full_group_by问题
- MySQL分组查询时出现错误SELECT list is not in GROUP BY ;this is incompatible with sql_mode=only_full_group_by
- Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate ent
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 解决方案
- 习题3.3
- 异步任务神器 Celery 快速入门教程
- (5)HBase 1.2.6伪分布安装
- 动态规划
- python3之1007.素数对猜想 (20分)
- MySQL 5.7.9版本sql_mode=only_full_group_by问题 用到GROUP BY 语句查询时com.mysql.jdbc.exceptions.jdbc4.MySQLSyn
- 中北大学NUC2017新生赛1010/NOJ-1990
- 配置防火墙端口访问
- cpp:变量的定义与Java中的不同
- 常见的五类排序算法图解和实现(交换类:冒泡排序,递归的快速排序)
- Android 性能优化系列
- mysql中union,左连接,右连接,与内连接
- 数论之旅(一): 逆元逆元!
- vue前端开发项目框架搭建(node+webpack+vue)