当前位置:网站首页>[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.
边栏推荐
- 2. First knowledge of C language (2)
- Experiment 7 use of common classes (correction post)
- Strengthen basic learning records
- [experiment index of educator database]
- . Net6: develop modern 3D industrial software based on WPF (2)
- About the parental delegation mechanism and the process of class loading
- js判断对象是否是数组的几种方式
- QT meta object qmetaobject indexofslot and other functions to obtain class methods attention
- HackMyvm靶机系列(2)-warrior
- Nuxtjs快速上手(Nuxt2)
猜你喜欢
Nuxtjs quick start (nuxt2)
Intensive literature reading series (I): Courier routing and assignment for food delivery service using reinforcement learning
Strengthen basic learning records
Hackmyvm target series (5) -warez
QT meta object qmetaobject indexofslot and other functions to obtain class methods attention
强化学习基础记录
Relationship between hashcode() and equals()
7-5 走楼梯升级版(PTA程序设计)
附加简化版示例数据库到SqlServer数据库实例中
Attach the simplified sample database to the SQLSERVER database instance
随机推荐
【MySQL-表结构与完整性约束的修改(ALTER)】
[insert, modify and delete data in the headsong educator data table]
7-8 7104 约瑟夫问题(PTA程序设计)
力扣152题乘数最大子数组
强化学习基础记录
强化學習基礎記錄
Wechat applet
Safe driving skills on ice and snow roads
Nuxtjs快速上手(Nuxt2)
[the Nine Yang Manual] 2022 Fudan University Applied Statistics real problem + analysis
About the parental delegation mechanism and the process of class loading
The difference between cookies and sessions
HackMyvm靶机系列(3)-visions
Programme de jeu de cartes - confrontation homme - machine
7-7 7003 组合锁(PTA程序设计)
Strengthen basic learning records
Experiment 9 input and output stream (excerpt)
Package bedding of components
Strengthen basic learning records
【黑马早报】上海市监局回应钟薛高烧不化;麦趣尔承认两批次纯牛奶不合格;微信内测一个手机可注册俩号;度小满回应存款变理财产品...