当前位置:网站首页>MYSQL:Expression #4 of SELECT list is not in GROUP BY clause and contains nonaggregated column
MYSQL:Expression #4 of SELECT list is not in GROUP BY clause and contains nonaggregated column
2022-06-12 18:02:00 【DXIANGH】
原因:select 查询的列 没有包含在group by 子句中
解决
方法一:查询的字段全部匹配到gruop by子句
方法二:修改数据库设置
1.
select @@global.sql_mode
2.`@@global.sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION’`
3.重启数据库
方法三:使用 ANY_VALUE()函数
如:
边栏推荐
- grpc-swift入门
- USB转串口那些事儿—最大峰值串口波特率VS连续通信最高波特率
- 极限编程--根源分析实践
- Continued 2 asp Net core router basic use demonstration 0.2 acquisition of default controller data
- Goframe gredis configuration management | comparison of configuration files and configuration methods
- The server time zone value ‘�й���ʱ��‘ is unrecognized or represents more than one time zone. ......
- 小程序和App同时拥有?两者兼得的一种技术方案
- 73. 矩阵置零(标记法)
- Applet and app are owned at the same time? A technical scheme with both
- 在同花顺开户证券安全吗
猜你喜欢

js两数之和

JDBC快速入门教程

Extreme Programming -- Practice of root cause analysis

PHP implementation of infinite classification tree (recursion and Optimization)

小程序和App同时拥有?两者兼得的一种技术方案

DRM driven MMAP detailed explanation: (I) preliminary knowledge

Nixos 22.05 installation process record

轻量、便捷的小程序转App技术方案,实现与微信/流量App互联互通

Write a select based concurrent server
![[csp]202012-2 optimal threshold for period end forecast](/img/40/9b59bd692bcfe05d16614cc6d55d1f.png)
[csp]202012-2 optimal threshold for period end forecast
随机推荐
使用MongoDB官方go库操作MongoDB原创
USB转串口那些事儿—最大峰值串口波特率VS连续通信最高波特率
EASYCODE template
Gossip about the source code of redis 89
Leetcode151 flipping words in strings
Write a select based concurrent server
Schematic diagram of active differential crystal oscillator and differences among lv-pecl, LVDS and HCSL
Window版本pytorch入门深度学习环境安装与配置
Getting started with grpc swift
Use of split method of string
轻量、便捷的小程序转App技术方案,实现与微信/流量App互联互通
Common dependencies of SSM
Global lock, table lock, row lock
字节飞书人力资源套件三面
leetcode 647. 回文子串
String s = null ; String s = new String(); String s = "; what is the difference between string s?
566. 重塑矩阵
High speed layout guidelines incomplete
1.5 what is an architect (serialization)
小程序和App同时拥有?两者兼得的一种技术方案