数据库报错SELECT list is not in GROUP BY clause and contains nonaggregated col
数据库报错SELECT list is not in GROUP BY clause and contains nonaggregated col
Expression #12 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘shaogang.role_menu.role_menu_id’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
用vim打开mysql.cnf文件
sudo vim /etc/mysql/conf.d/mysql.cnf
滚动到文件底部赋值如下内容,然后保存并退出输入模式
[mysqld]
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
重启mysql服务器
sudo service mysql restart
数据库报错SELECT list is not in GROUP BY clause and contains nonaggregated col相关推荐
- MySQL报错 SELECT list is not in GROUP BY clause and contains nonaggregated column...
MySQL报错 SELECT list is not in GROUP BY clause and contains nonaggregated column- 原因: 在mysql5.7以上的版本中 ...
- mysql使用group by查询报错SELECT list is not in GROUP BY clause and contains nonaggregated column.
mysql使用group by查询报错SELECT list is not in GROUP BY clause and contains nonaggregated column. 出现原因 使用g ...
- 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 ...
- 报错,> 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column
错误: mysql: select * ,count(*)as count from app_cash_trans_log group by app_cash_trans_log.tran_code ...
- 使用group by语句时,报错,获取不到数据,出现SELECT list is not in GROUP BY clause and contains nonaggregated column 问题
SELECT list is not in GROUP BY clause and contains nonaggregated column 报错如下: Expression #2 of SELEC ...
- 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'cre
sql语句 SELECT * FROM t_company_change_log WHERE company_id='257949626441666560' AND rec_status='N' GR ...
- SELECT list is not in GROUP BY clause and contains nonaggregated column
问题: SELECT list is not in GROUP BY clause and contains nonaggregated column 原因: 举个例子,有这么一个查询语句: SELE ...
- [MySQL]SELECT list is not in GROUP BY clause and contains nonaggregated column...
项目在windows上运行正常,迁移到Linux系统上就出现了这个错,经查是由于本人sql不规范且恰好mysql的sql_mode启用了only_full_group_by,当sql语句中使用了分组查 ...
- SELECT list is not in GROUP BY clause and contains nonaggregated column---Linux工作笔记049
如果你一个系统,以前用的是mysql的版本是:5.6.22 然后,后来,你再安装mysql的时候版本变成5.7.32 等等了,其实就是说,以前你用的 mysql版本是5.6.xx,后来用5.7.xx ...
最新文章
- 【Flutter学习】组件学习之目录
- 一起学微软Power BI系列-使用技巧(1)连接Oracle与Mysql数据库
- .Net 编码以及与这些编码关联的代码页
- Android插件化开发之动态加载技术简单易懂的介绍方式
- kafka java编程demo_Kafka简单客户端编程实例
- 寻找字符串中第一个仅仅出现一次打字符
- python123外汇兑换计算器_Python 3.x--使用re模块,实现计算器运算实例
- 雅虎借道阿里巴巴意在控股淘宝
- 在线闹钟html代码复制,html5时钟实现代码
- [最小生成树][Dij] Jzoj P5818 做运动
- 如何计算像素当量_「轴承知识」如何通过静承载能力选择轴承
- 软件架构入门,看这篇就够了···
- 沟通CTBS金融行业远程接入解决方案
- Html代码问题:用鼠标悬停在文字上文字的颜色就变颜色的效果
- 《程序员》沉痛悼念王江民先生
- 一阶贝塞尔函数matlab,一阶贝塞尔函数
- 【docker入门】
- DAO概念板块代币大盘点,你又把握了几个?
- GifCam2.0使用
- 电脑之间如何迁移数据?数据迁移方法描述
热门文章
- java中注释的嵌套,java – 使用mybatis注释获取嵌套对象
- java volatitl_Java中的关键字volatitle
- ddx_check绑定注意事项
- Linux容器:cgroup,namespace原理与实现
- DPDK笔记 RSS(receive side scaling)网卡分流机制
- Linux异步管道多线程速率测试-原始数据
- srsLTE源码学习:GTP:GPRS Turning Protocol- GPRS隧道协议
- 几个简单的OpenCV程序
- python3.5安装教程linux_Linux下安装python3.6和第三方库的教程详解
- **python基础类和对象(十二)