mysql报错:Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre
原因:
https://blog.csdn.net/fansili/article/details/78664267
解决办法:
1:查看mysql配置文件位置
[root@localhost ~]# ps -ef | grep mysql
mysql 838 1 0 02:21 ? 00:00:00 /usr/sbin/mysqld --defaults-file=/etc/my.cnf
root 2035 1706 0 02:29 pts/0 00:00:00 grep --color=auto mysql
2:打开配置文件
[root@localhost ~]# vim /etc/my.cnf
3:修改配置:如果没有该配置项,添加一个即可
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
4:重启mysql
[root@localhost ~]# systemctl restart mysql
转载于:https://www.cnblogs.com/xiangyuqi/p/10627274.html
mysql报错:Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre相关推荐
- MySQL报错“Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre”解决方法
解决MySQL5.7版本之后使用GROUP BY语句时报错 问题原因 解决方法 今天使用mysql简单的一句分组查询语句(GROUP BY)报错了. mysql> SELECT * FROM t ...
- MySQL查询的时候出现 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre报错
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre -后面一大堆 出错就是这样 我们可以在网上看到 ...
- mysql not in报错_mysql从5.7升级到8.0查询报错Expression #2 of SELECT list is not in GROUP BY...
报错信息: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sss. ...
- 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 ...
- 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 'sss. ...
- 遇见 mysql Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre 问题
这是因为mysql5.7及以上版本的mysql中,对于 group by 的这种聚合操作,如果在select 中的列, 没有在group by 中出现,那么这个SQL是不合法的,因为列不在group ...
- 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 ...
最新文章
- Redis 重写原理
- WPF 用Popup做下拉菜单
- Algorand的共识协议及其核心的优势
- 用python玩转数据慕课答案第三周_大学慕课用Python玩转数据答案公众号
- WorkerMan 入门学习之(二)基础教程-Connection类的使用
- 智能投影:下一个传统投影的颠覆者
- oracle flex cluster,【Ora12c-GI】将Standard集群修改为Flex集群
- OpenShift 4 之Istio-Tutorial (5) 其它流量控制场景以及VirtualService和DestinationRule的关系
- eclipse python_一文教你配置得心应手的Python
- BizTalk Server 2010新功能介绍(四):基于安全连接的FTP适配器
- 「洛谷5017」「NOIP2018」摆渡车【DP,经典好题】
- webStrom 开始你的第一个React应用
- QT绘制同心扇形(Paintevent实现)
- c语言程序设计设计题题库,C语言程序设计题库.doc
- 俄罗斯方块c语言代码及注释,C语言代码实现俄罗斯方块
- 离线电商数仓3.0项目即席查询复盘笔记
- 计算机专业期末总结200字,学期末自我总结200字
- IT人物——冯诺依曼
- 三星android系统应用,三星Android系统文件夹全解
- allegro不规则焊盘制作
热门文章
- 百面机器学习——第一章特征工程
- string contains不区分大小写_String基础复习
- 深度ip转换器手机版app_手机大师智能管家app下载-手机大师智能管家app官网版 v1.0.0...
- python数据分析基础教程 numpy_Python数据分析基础教程:NumPy学习指南(第2版)
- React Hooks的使用(三)——useRef、useImperativeHandle、useLayoutEffect解析、自定义Hook
- 一、Java 面向对象高级——Object类、常用API
- 吴恩达-《深度学习DeepLearning》汇总目录
- 天池 在线编程 到达终点
- 牛客 牛牛浇树(差分)
- 【Kaggle微课程】Natural Language Processing - 2.Text Classification