当前位置:网站首页>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'
边栏推荐
- Kubernetes notes (I) kubernetes cluster architecture
- Pytorch builds the simplest version of neural network
- 从小数据量分库分表 MySQL 合并迁移数据到 TiDB
- BeanDefinitionRegistryPostProcessor
- Solve the problem that Anaconda environment cannot be accessed in PowerShell
- Project summary --04
- Click cesium to obtain three-dimensional coordinates (longitude, latitude and elevation)
- Code generator - single table query crud - generator
- tabbar的设置
- 从小数据量 MySQL 迁移数据到 TiDB
猜你喜欢

使用 Abp.Zero 搭建第三方登录模块(一):原理篇

Oauth2.0 - using JWT to replace token and JWT content enhancement

Cesium 点击获三维坐标(经纬度高程)

Alibaba cloud OOS file upload

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

tabbar的设置

Pytorch builds the simplest version of neural network

The most responsible command line beautification tutorial

技术管理进阶——你了解成长的全貌吗?

Clickhouse learning notes (2): execution plan, table creation optimization, syntax optimization rules, query optimization, data consistency
随机推荐
[set theory] relational closure (relational closure solution | relational graph closure | relational matrix closure | closure operation and relational properties | closure compound operation)
表达式的动态解析和计算,Flee用起来真香
Zhiniu stock project -- 04
Yum is too slow to bear? That's because you didn't do it
Method of converting GPS coordinates to Baidu map coordinates
Luogu problem list: [mathematics 1] basic mathematics problems
Cesium 点击获三维坐标(经纬度高程)
Skywalking8.7 source code analysis (II): Custom agent, service loading, witness component version identification, transform workflow
Disruptor learning notes: basic use, core concepts and principles
MySQL带二进制的库表导出导入
23 design models
Oauth2.0 - Introduction and use and explanation of authorization code mode
Kubernetes notes (III) controller
Solve the problem that Anaconda environment cannot be accessed in PowerShell
Project summary --01 (addition, deletion, modification and query of interfaces; use of multithreading)
理解 YOLOV1 第一篇 预测阶段
The most responsible command line beautification tutorial
Deep learning, thinking from one dimensional input to multi-dimensional feature input
Oracle database synonym creation
Migrate data from Mysql to tidb from a small amount of data