当前位置:网站首页>[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.
边栏推荐
- Implementation of count (*) in MySQL
- Strengthen basic learning records
- 7-14 error ticket (PTA program design)
- Implementation principle of automatic capacity expansion mechanism of ArrayList
- Middleware vulnerability recurrence Apache
- 实验七 常用类的使用
- 1143_ SiCp learning notes_ Tree recursion
- (original) make an electronic clock with LCD1602 display to display the current time on the LCD. The display format is "hour: minute: Second: second". There are four function keys K1 ~ K4, and the fun
- 7-11 机工士姆斯塔迪奥(PTA程序设计)
- 7-14 错误票据(PTA程序设计)
猜你喜欢
Safe driving skills on ice and snow roads
Callback function ----------- callback
透彻理解LRU算法——详解力扣146题及Redis中LRU缓存淘汰
It's never too late to start. The tramp transformation programmer has an annual salary of more than 700000 yuan
. Net6: develop modern 3D industrial software based on WPF (2)
Write a program to simulate the traffic lights in real life.
HackMyvm靶机系列(7)-Tron
Read only error handling
HackMyvm靶机系列(4)-vulny
记一次猫舍由外到内的渗透撞库操作提取-flag
随机推荐
It's never too late to start. The tramp transformation programmer has an annual salary of more than 700000 yuan
Experiment 7 use of common classes
FAQs and answers to the imitation Niuke technology blog project (II)
Strengthen basic learning records
【数据库 三大范式】一看就懂
强化學習基礎記錄
Strengthen basic learning records
搭建域环境(win)
Analysis of penetration test learning and actual combat stage
扑克牌游戏程序——人机对抗
The difference between abstract classes and interfaces
7-6 local minimum of matrix (PTA program design)
Zatan 0516
Poker game program - man machine confrontation
[three paradigms of database] you can understand it at a glance
Callback function ----------- callback
HackMyvm靶機系列(3)-visions
强化学习基础记录
强化学习系列(一):基本原理和概念
js判断对象是否是数组的几种方式