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