原文:linux下 java.sql.SQLSyntaxErrorException: In aggregated query without GROUP BY, expression this is incompatible with sql_mode=only_full_group_by解决办法

永久解决办法,重启任然生效 .登录linux服务器 .找到my.cnf 文件 .vim etc my.cnf 分别在 mysqld 和 mysql 下面添加这段 sql mode STRICT TRANS TABLES,NO ZERO IN DATE,NO ZERO DATE,ERROR FOR DIVISION BY ZERO,NO AUTO CREATE USER,NO ENGINE SUBS ...

2020-08-20 16:19 0 491 推荐指数:

查看详情

; this is incompatible with sql_mode=only_full_group_by

1.这个错误发生在mysql 5.7 版本及以上版本会出现的问题: mysql 5.7版本默认的sql配置是:sql_mode="ONLY_FULL_GROUP_BY",这个配置严格执行了"SQL92标准" 2.在sql执行时,出现该原因: 简单来说就是:输出 ...

Sun May 31 19:34:00 CST 2020 0 6495
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM