当前位置:网站首页>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'
边栏推荐
- Project summary --01 (addition, deletion, modification and query of interfaces; use of multithreading)
- Apifix installation
- Loss function in pytorch multi classification
- arcgis创建postgre企业级数据库
- Skywalking8.7 source code analysis (I): agent startup process, agent configuration loading process, custom class loader agentclassloader, plug-in definition system, plug-in loading
- Difference between shortest path and minimum spanning tree
- Disruptor learning notes: basic use, core concepts and principles
- 代码管理工具
- Kubernetes notes (V) configuration management
- Kubernetes notes (VII) kuberetes scheduling
猜你喜欢
[video of Teacher Zhao Yuqiang's speech on wot] redis high performance cache and persistence
Cesium 点击获取模型表面经纬度高程坐标(三维坐标)
Understand the first prediction stage of yolov1
有意思的鼠标指针交互探究
The most responsible command line beautification tutorial
Kubernetes notes (VII) kuberetes scheduling
理解 YOLOV1 第一篇 预测阶段
Oauth2.0 - using JWT to replace token and JWT content enhancement
Advanced technology management - do you know the whole picture of growth?
phpstudy设置项目可以由局域网的其他电脑可以访问
随机推荐
Cesium entity (entities) entity deletion method
SVN分支管理
Jedis source code analysis (II): jediscluster module source code analysis
Solve the problem that Anaconda environment cannot be accessed in PowerShell
1. 兩數之和
Migrate data from Amazon aurora to tidb
There is no one of the necessary magic skills PXE for old drivers to install!!!
Exportation et importation de tables de bibliothèque avec binaires MySQL
表达式的动态解析和计算,Flee用起来真香
BeanDefinitionRegistryPostProcessor
技术管理进阶——你了解成长的全貌吗?
Beandefinitionregistrypostprocessor
Use abp Zero builds a third-party login module (I): Principles
Oracle Database Introduction
Multithreading and high concurrency (7) -- from reentrantlock to AQS source code (20000 words, one understanding AQS)
Jedis source code analysis (I): jedis introduction, jedis module source code analysis
Kubernetes notes (II) pod usage notes
[Zhao Yuqiang] deploy kubernetes cluster with binary package
tabbar的设置
Understand expectations (mean / estimate) and variances