当前位置:网站首页>[err] 1055 - expression 1 of order by clause is not in group by clause MySQL
[err] 1055 - expression 1 of order by clause is not in group by clause MySQL
2022-07-06 14:02:00 【Little boy, handsome Yang Shaoping】
problem :[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Solution :
select version(),
@@sql_mode;SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
The perfect solution is :
1 show variables like "sql_mode";
2
3 set sql_mode='';
4 set sql_mode='NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES';
- 1.
- 2.
- 3.
- 4.
边栏推荐
- Detailed explanation of redis' distributed lock principle
- 2. First knowledge of C language (2)
- Strengthen basic learning records
- Canvas foundation 2 - arc - draw arc
- [面试时]——我如何讲清楚TCP实现可靠传输的机制
- 7-9 make house number 3.0 (PTA program design)
- [experiment index of educator database]
- 7-11 mechanic mustadio (PTA program design)
- js判断对象是否是数组的几种方式
- Strengthen basic learning records
猜你喜欢

FAQs and answers to the imitation Niuke technology blog project (I)

Record a penetration of the cat shed from outside to inside. Library operation extraction flag

Programme de jeu de cartes - confrontation homme - machine

记一次猫舍由外到内的渗透撞库操作提取-flag

PriorityQueue (large root heap / small root heap /topk problem)

1. First knowledge of C language (1)

Matlab opens M file garbled solution

7-7 7003 组合锁(PTA程序设计)

FAQs and answers to the imitation Niuke technology blog project (III)

强化学习基础记录
随机推荐
7-1 output all primes between 2 and n (PTA programming)
7-7 7003 combination lock (PTA program design)
实验五 类和对象
[insert, modify and delete data in the headsong educator data table]
搭建域环境(win)
PriorityQueue (large root heap / small root heap /topk problem)
SRC mining ideas and methods
TypeScript快速入门
简单理解ES6的Promise
The difference between overloading and rewriting
Canvas foundation 1 - draw a straight line (easy to understand)
Experiment 7 use of common classes
强化学习基础记录
Hackmyvm target series (5) -warez
力扣152题乘数最大子数组
实验六 继承和多态
FAQs and answers to the imitation Niuke technology blog project (I)
HackMyvm靶机系列(6)-videoclub
使用Spacedesk实现局域网内任意设备作为电脑拓展屏
Hackmyvm target series (6) -videoclub