具体报错

[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';

转载于:https://www.cnblogs.com/shijieli/p/10405795.html

MySQL 报错 1055相关推荐

  1. MySQL报错1055解决办法:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains

    [mysql报错1055 报错解决办法][Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and cont ...

  2. Mysql报错1055

    Mysql group by报错 1055 [Err] 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains ...

  3. MySQL 报错1055

    一.问题描述 SELECT * FROM tbluser GROUP BY sex   当我以这条语句进行数据库查询的时候,报了个错: > 1055 - Expression #1 of SEL ...

  4. MySQL报错1055解决办法

    最近在mysql 8.0.15版本中发现一个问题,在执行完sql语句后报错:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP ...

  5. mysql8.0 新特性 sql_mode(mysql 报错1055)

    问题描述 因为开发环境和正式环境所使用的mysql数据库的版本不一样,开发环境使用的时候5.7而正式环境使用的是8.0,而在Mysql的8.0版本中默认是开启sql_mode = only_full_ ...

  6. MYSQL数据库报错 1055

    MYSQL数据库报错 1055 今天在做毕业设计,当点开要查看的视图的时候,爆出了1055的错,该错误如下: 错误原因:在MySQL5.7之后,sql_mode中默认存在ONLY_FULL_GROUP ...

  7. mysql 报错解决思考Expression #5 of SELECT list is not in GROUP BY clause and contains nonaggregated column

    mysql报错: [Err] 1055 - Expression #5 of SELECT list is not in GROUP BY clause and contains nonaggrega ...

  8. mysql1055_MySQL5.7 group by新特性报错1055的解决办法

    项目中本来使用的是mysql5.6进行开发,切换到5.7之后,突然发现原来的一些sql运行都报错,错误编码1055,错误信息和sql_mode中的"only_full_group_by&qu ...

  9. mysql 报错 get error 28 from storage engine 解决方法

    mysql 报错 get error 28 from storage engine 解决方法 参考文章: (1)mysql 报错 get error 28 from storage engine 解决 ...

最新文章

  1. 一道泄露并遭禁用的谷歌面试题,背后玄机全解析
  2. mysql保存特殊表情_让 MySQL 支持 emoji 表情等特殊字符存储
  3. 阿里毕玄:推荐给Java程序员的7本好书
  4. 杭电1963 完全背包
  5. CentOs7配置java环境
  6. JavaScript高级程序设计 中文PDF下载
  7. 【更新】PDF控件Spire.PDF 3.9.538发布 | 附下载
  8. Proteus总线连接心得
  9. CSS居中对齐、定位的总结
  10. python往npy写入数据_数据存储在*.npy中的方式是什么?
  11. ROS学习笔记(二)launch文件初步使用
  12. eclipse新建java项目隐藏了bin文件夹,只有src文件夹,解决方法
  13. n服登陆显示从服务器断开,魔兽世界N服卡认证、断开连接的解决方法
  14. 《计算机文件管理》教学设计,《文件和文件夹的操作》教学设计
  15. USYD悉尼大学DATA 2002 【R语言学习2】在 Tidyverse 中与数据通信 (Communicating with Data in the Tidyverse)
  16. wifi mesh 开关
  17. jsf 教学_JSF初学者教程
  18. 素数个数求解与素数的判定
  19. C# GDAL 数字图像处理Part10 自动配准/半自动配准
  20. 【idea】IDEA常用断点详解

热门文章

  1. React篇-报错信息:warning: Can't call setState (or forceUpdate) on an unmounted component.
  2. git服务的安装和使用
  3. 【29.42%】【POJ 1182】食物链
  4. 20162328蔡文琛 四则运算第一周
  5. MessageBox只弹出一次
  6. Select的OnChange()事件
  7. DB2中导出数据库的所有DDL脚本
  8. python线程池模块_Python并发编程之线程池/进程池--concurrent.futures模块
  9. hdu4122 制作月饼完成订单的最小花费
  10. hdu4862 费用流(不错)