报错

ERROR 1055 (42000): Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘jol.solution.nick’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

关键词:only_full_group_by

查询查看sql_mode中的内容

mysql> select @@GLOBAL.sql_mode;
+-------------------------------------------------------------------------------------------------------------------------------------------+
| @@GLOBAL.sql_mode                                                                                                                         |
+-------------------------------------------------------------------------------------------------------------------------------------------+
| ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |
+-------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.05 sec)

临时解决

set @@GLOBAL.sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';

永久解决


my.ini文件添加如下,即删除ONLY_FULL_GROUP_BY

sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION

lly dependent on columns in GROUP BY clause; this is incompatible with sql_m相关推荐

  1. columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by 版本mysql8.0

    问题如下: ERROR 1055 (42000): Expression #2 of SELECT list is not in GROUP BY clause and contains nonagg ...

  2. yum 安装mysql 后 which is not functionally dependent on columns in GROUP BY clause; this is incompatibl

    vim /etc/my.cnf i 咕噜到最下面 加 sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVIS ...

  3. which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mod

    which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mod ...

  4. Mysql出现which is not functionally dependent on columns in GROUP BY clause的解决办法

    1.修改my.ini(windows)或者my.cnf(centos) 在[mysqld]下加入 sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZER ...

  5. mySql中Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre的问题

    报错信息 Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'a.id' ...

  6. 【阿里云 Linux 服务器】mysql 遇到以下问题Expression #1 of SELECT list is not in GROUP BY clause and contains nonag

    报错信息如下: Caused by: java.sql.SQLSyntaxErrorException: Expression #1 of SELECT list is not in GROUP BY ...

  7. [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated

    mysql客户端查询报这个错误,如下所示: [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and co ...

  8. mysql Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nona

    1. 操作mysql的时候提示如下错误 [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and cont ...

  9. 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains解决

    1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'btc ...

最新文章

  1. java lamdba表达式效率_java8新特性Lambda表达式为什么运行效率低
  2. 简单总结一下.net获得虚拟目录几个基本操作
  3. 宗宁:全面解析微博财报数据爆发下的平台机会
  4. bios文件查看工具_何必花钱升级显卡!AMD鸡血BIOS杀到
  5. 《Matlab实用案例》系列Matlab从入门到精通实用100例案例教程目录(持续更新)
  6. 户外lisp导向牌如何安装_深圳医院导向标识牌制作按功能可分为哪些?
  7. 腾讯已问灵魂,鹅厂新立家风
  8. SDOD: Real-time Segmenting and Detecting 3D Objects by Depth(实时3D检测与分割)
  9. 计算机科学期刊重复率要求,计算机科学与应用期刊
  10. 使用excel2016 制作甘特图
  11. JS设计模式(二)-Revealing Module(揭示模式)
  12. [C#]Windows服务程序[转载西门吹雪的好文章]
  13. HTB-Antique
  14. 使用命令行生成文件目录树
  15. 我们计划为EasyDSS定制开发一款超低延时的EasyPlayer Flash播放器
  16. 奇思妙想:小程序wxapkg包一键运行至浏览器是什么操作?
  17. 最适合汽车软件开发的生态系统是什么?
  18. Qt 5.9.5学习笔记第三节课
  19. 大疆无人机安卓Mobile Sdk开发(三)制定航点任务WaypointMission
  20. Spring框架概述

热门文章

  1. MySQL 第二篇:增删改查
  2. LoadRunner监控Linux的三种方法
  3. 在centos6.5安装MariaDB(mysql)
  4. 外包公司做遗留项目有意思么?
  5. jQuery幻灯片skitter-slider插件学习总结
  6. 总结一下内核DEBUG中的dump_stack, BUG, BUG_ON以及panic
  7. html a name属性
  8. 一个简单json数据提交实例
  9. Hadoop Eclipse开发环境设置
  10. java 数据结构源码--Trie树