当前位置:网站首页>MySQL reports an error "expression 1 of select list is not in group by claim and contains nonaggre" solution
MySQL reports an error "expression 1 of select list is not in group by claim and contains nonaggre" solution
2022-07-03 10:36:00 【Twilight drainage software】
solve MySQL5.7 Use after version GROUP BY Wrong sentence
Use today mysql A simple grouping query statement (GROUP BY) Wrong report .
mysql> SELECT * FROM tb GROUP BY empid;
ERROR 1055 (42000): Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'db1.tb.sales' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

Checked the cause of the problem and the solution , Successfully solved .
Question why
reason : Use GROUP BY Statement violated sql_mode=only_full_group_by. because mysql edition 5.7 Then the default mode is ONLY_FULL_GROUP_BY. Original words of official website documents :
边栏推荐
- LeetCode - 715. Range module (TreeSet)*****
- Synchronous vs asynchronous
- Realize an online examination system from zero
- Ind wks first week
- SQL Server Management Studio cannot be opened
- GAOFAN Weibo app
- Anaconda installation package reported an error packagesnotfounderror: the following packages are not available from current channels:
- 七、MySQL之数据定义语言(二)
- Neural Network Fundamentals (1)
- Leetcode skimming ---35
猜你喜欢

2018 y7000 upgrade hard disk + migrate and upgrade black apple

Matrix calculation of Neural Network Introduction (pytoch)

A complete answer sheet recognition system

Model selection for neural network introduction (pytorch)

Linear regression of introduction to deep learning (pytorch)

ECMAScript -- "ES6 syntax specification # Day1

侯捷——STL源码剖析 笔记

Data classification: support vector machine

A complete mall system

8、 Transaction control language of MySQL
随机推荐
Model selection for neural network introduction (pytorch)
Leetcode - 706 design hash mapping (Design)*
Boston house price forecast (tensorflow2.9 practice)
Leetcode刷题---189
Ut2012 learning notes
Model evaluation and selection
A complete answer sheet recognition system
Data classification: support vector machine
深度学习入门之自动求导(Pytorch)
Leetcode刷题---832
Leetcode - 1172 plate stack (Design - list + small top pile + stack))
Anaconda installation package reported an error packagesnotfounderror: the following packages are not available from current channels:
What did I read in order to understand the to do list
Numpy Foundation
Notes - regular expressions
20220607 others: sum of two integers
20220601 Mathematics: zero after factorial
ECMAScript -- "ES6 syntax specification # Day1
【毕业季】图匮于丰,防俭于逸;治不忘乱,安不忘危。
Hands on deep learning pytorch version exercise solution - 2.4 calculus