码迷,mamicode.com
首页 > 数据库 > 详细

Caused by: java.sql.SQLSyntaxErrorException: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'c.id'

时间:2020-06-13 16:01:22      阅读:325      评论:0      收藏:0      [点我收藏+]

标签:syn   reg   exp   打开   ble   global   engine   except   输入   

打开mysql客户端,输入

select @@global.sql_mode

再执行

set @@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;

 

Caused by: java.sql.SQLSyntaxErrorException: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'c.id'

标签:syn   reg   exp   打开   ble   global   engine   except   输入   

原文地址:https://www.cnblogs.com/javagg/p/13114638.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!