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 contains nonaggregated column ‘information_schema.
PROFILING.SEQ‘ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
此问题需要删除sql_mode中的only**字段
修改为
sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'
保存重启即可
转载于:https://www.cnblogs.com/youran-he/p/9559639.html
mysql Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nona相关推荐
- 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 ...
- mysql 5.7版本异常Expression #1 of ORDER BY clause is not in GROUP BY clause and contains 处理
今天在做按时间分组统计数据时,一段sql在数据库运行正常,但是在java代码中抛出了异常: sql语句: SELECT DATE_FORMAT( commitTime, '%H' ) AS gjtim ...
- [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 ...
- [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated c
[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated c ...
- 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contai
文章目录 1. 现象 2. docker内部mysql容器 解决方案 3. windows和linux 解决方案 1. 现象 在使用sql语句创建表时,报错: 1055 - Expression #1 ...
- [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 c ...
- [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause 的问题 MySQL
show variables like "sql_mode"; set sql_mode=''; set sql_mode='NO_ENGINE_SUBSTITUTION,STRI ...
- sql [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause
解决当时 错误 show variables like "sql_mode";set sql_mode='';set sql_mode='NO_ENGINE_SUBSTITUTIO ...
- 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 ...
最新文章
- 目标和(01背包应用)
- purdue university some course and papers
- 高效地加载图片(一) 高效地加载大图
- 《OD大数据实战》MongoDB环境搭建
- 【贯穿】.NET6结合Docker傻瓜式实现容器编排
- (Tree)二叉树基本操作
- New directions in automated traffic analysis论文解读
- fastdfs java token_fastdfs 开启 token 防盗链
- process_进程池
- 打印机之——Mac电脑添加打印机
- Samba 服务详解
- init: wait for '/dev/block/bootdevice/by-name/cache' timed out and took 5007ms【学习笔记】
- 使用C++读取二进制文件(dat格式)
- 【翻译】 Unity3D VR 教程:4.VR中的用户界面
- 菜鸟、小白在autojs和冰狐智能辅助之间如何选择?
- 利用gitee仓库的流水线功能实现Java项目的自动化部署
- 纯javascript的HTML在线编辑器
- shader基础学习摘要(二) 兰伯特光照模型
- 众包,一个不成熟的类威客概念
- AutoCAD导出wmf文件,并转成wpf xaml