当前位置:网站首页>Mysql5.7 group by error
Mysql5.7 group by error
2022-07-03 06:12:00 【Undefined-wechat】
mysql5.7 group by Report errors
Running environment
macOS
mysql edition
5.7.23
Wrong content
ERROR 1055 (42000): Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'db_name.tb_name.field' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
resolvent
my.cnf (windows by my.ini) In file ,[mysql] and [mysqld] Add below sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'
边栏推荐
- Alibaba cloud OOS file upload
- tabbar的设置
- 从小数据量 MySQL 迁移数据到 TiDB
- Redis cluster creation, capacity expansion and capacity reduction
- Use abp Zero builds a third-party login module (I): Principles
- 【系统设计】邻近服务
- The server data is all gone! Thinking caused by a RAID5 crash
- 伯努利分布,二项分布和泊松分布以及最大似然之间的关系(未完成)
- Kubesphere - build Nacos cluster
- 表达式的动态解析和计算,Flee用起来真香
猜你喜欢

从小数据量 MySQL 迁移数据到 TiDB

Kubernetes notes (10) kubernetes Monitoring & debugging

ruoyi接口权限校验

智牛股--03

23 design models

Project summary --01 (addition, deletion, modification and query of interfaces; use of multithreading)

SVN分支管理

輕松上手Fluentd,結合 Rainbond 插件市場,日志收集更快捷

Merge and migrate data from small data volume, sub database and sub table Mysql to tidb

有意思的鼠标指针交互探究
随机推荐
BeanDefinitionRegistryPostProcessor
Kubesphere - build MySQL master-slave replication structure
Skywalking8.7 source code analysis (I): agent startup process, agent configuration loading process, custom class loader agentclassloader, plug-in definition system, plug-in loading
Project summary --01 (addition, deletion, modification and query of interfaces; use of multithreading)
CKA certification notes - CKA certification experience post
Intel's new GPU patent shows that its graphics card products will use MCM Packaging Technology
伯努利分布,二项分布和泊松分布以及最大似然之间的关系(未完成)
从小数据量分库分表 MySQL 合并迁移数据到 TiDB
Alibaba cloud Alipay sandbox payment
使用conda创建自己的深度学习环境
Oauth2.0 - Introduction and use and explanation of authorization code mode
项目总结--04
Get a screenshot of a uiscrollview, including off screen parts
认识弹性盒子flex
Skywalking8.7 source code analysis (II): Custom agent, service loading, witness component version identification, transform workflow
pytorch 多分类中的损失函数
Sorry, this user does not exist!
Kubesphere - Multi tenant management
技术管理进阶——你了解成长的全貌吗?
有意思的鼠标指针交互探究