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

MySQL 报错 1055

时间:2019-02-20 12:42:12      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:sql   ESS   contain   version   replace   student   cti   his   tables   

 



具体报错

[2019-02-20 11:57:36] [42000][1055] Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column exer.student.sid which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

 

 解决方案

select version(),
@@sql_mode;SET sql_mode=(SELECT REPLACE(@@sql_mode,ONLY_FULL_GROUP_BY,‘‘));

 

 

show variables like "sql_mode";
set sql_mode=‘‘;
set sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES;

 

MySQL 报错 1055

标签:sql   ESS   contain   version   replace   student   cti   his   tables   

原文地址:https://www.cnblogs.com/shijieli/p/10405795.html

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