当前位置:网站首页>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 skimming ---1
- Rewrite Boston house price forecast task (using paddlepaddlepaddle)
- What did I read in order to understand the to do list
- 六、MySQL之数据定义语言(一)
- MySQL报错“Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre”解决方法
- A complete mall system
- Handwritten digit recognition: CNN alexnet
- 神经网络入门之预备知识(PyTorch)
- Julia1.0
- Multi-Task Feature Learning for Knowledge Graph Enhanced Recommendation
猜你喜欢
Softmax regression (pytorch)
Raspberry pie 4B deploys lnmp+tor and builds a website on dark web
Ut2015 learning notes
Timo background management system
Rewrite Boston house price forecast task (using paddlepaddlepaddle)
Ut2012 learning notes
Advantageous distinctive domain adaptation reading notes (detailed)
Linear regression of introduction to deep learning (pytorch)
Leetcode - the k-th element in 703 data flow (design priority queue)
Stroke prediction: Bayesian
随机推荐
Ut2013 learning notes
C#项目-寝室管理系统(1)
Leetcode刷题---217
Leetcode skimming ---10
Preliminary knowledge of Neural Network Introduction (pytorch)
Jetson TX2 刷机
Data preprocessing - Data Mining 1
神经网络入门之预备知识(PyTorch)
Leetcode刷题---1
Model selection for neural network introduction (pytorch)
Tensorflow—Neural Style Transfer
Weight decay (pytorch)
Leetcode刷题---263
Leetcode - the k-th element in 703 data flow (design priority queue)
Leetcode刷题---44
Leetcode - 1172 plate stack (Design - list + small top pile + stack))
[LZY learning notes dive into deep learning] 3.4 3.6 3.7 softmax principle and Implementation
8、 Transaction control language of MySQL
Hands on deep learning pytorch version exercise answer - 2.2 preliminary knowledge / data preprocessing
Drop out (pytoch)