找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1107|回复: 0

mySQL报only_full_group_by错误处理

[复制链接]
发表于 2023-7-25 13:28:43 | 显示全部楼层 |阅读模式
问题如下:内部错误,操作异常; ### Error querying database. Cause: java.sql.SQLSyntaxErrorException: Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'leaneam.a.ypid' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### Cause: java.sql.SQLSyntaxErrorException: Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'leaneam.a.ypid' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by ; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'leaneam.a.ypid' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

处理方式:
my.ini 中 搜索 only_full_group_by,然后删除
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|企业数字化人才转型教练中心 ( 湘ICP备15006648号-1 )

GMT+8, 2024-10-23 07:39 , Processed in 0.060600 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表