当前位置: 首页 > news >正文

ORDER BY clause is not in GROUP BY clause and contains nonaggregated column ‘xxx.sxxx_.id‘ which is

异常信息

2022-1-6 09:05:28 [http-nio-8092-exec-8] WARN [SqlExceptionHelper]:137 SQL Error: 1055, SQLState: 42000
2022-1-6 09:05:28 [http-nio-8092-exec-8] ERROR [SqlExceptionHelper]:142 Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column ‘xxx.sxxx_.id’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

重点

ORDER BY clause is not in GROUP BY clause and contains nonaggregated column ‘xxx.sxxx_.id’ which is not functionally dependent on columns in GROUP BY clause

意思就是order by后面的参数必须出现在结果的字段中。假如要order by id,那么就要select id出来才可以。

相关文章:

  • group by 和 where一起使用
  • java求多个Long的平均数,其中可能有null
  • java遍历Map的四种方法
  • win11窗口分1/3 2/3屏的方法
  • java后端实习经验
  • cb.conjunction()的意思
  • spring hashmap线程安全
  • 给el-table动态添加竖线分割
  • 使用hashMap优化两次for循环
  • Spring Boot整合Shiro入门教程
  • jpa关联关系注解 入门教程(一)
  • jpa关联关系注解 入门教程(二)
  • springboot 将对象装换为map
  • springboot 将map装换为java对象
  • json header
  • iOS高仿微信项目、阴影圆角渐变色效果、卡片动画、波浪动画、路由框架等源码...
  • java8 Stream Pipelines 浅析
  • Java应用性能调优
  • Js实现点击查看全文(类似今日头条、知乎日报效果)
  • LeetCode541. Reverse String II -- 按步长反转字符串
  • markdown编辑器简评
  • SpriteKit 技巧之添加背景图片
  • Terraform入门 - 1. 安装Terraform
  • 从零到一:用Phaser.js写意地开发小游戏(Chapter 3 - 加载游戏资源)
  • 计算机在识别图像时“看到”了什么?
  • 技术攻略】php设计模式(一):简介及创建型模式
  • 悄悄地说一个bug
  • 巧用 TypeScript (一)
  • 如何用Ubuntu和Xen来设置Kubernetes?
  • 腾讯视频格式如何转换成mp4 将下载的qlv文件转换成mp4的方法
  • 限制Java线程池运行线程以及等待线程数量的策略
  • 用 Swift 编写面向协议的视图
  • Semaphore
  • #LLM入门|Prompt#2.3_对查询任务进行分类|意图分析_Classification
  • #中国IT界的第一本漂流日记 传递IT正能量# 【分享得“IT漂友”勋章】
  • (4) openssl rsa/pkey(查看私钥、从私钥中提取公钥、查看公钥)
  • (C语言)二分查找 超详细
  • (M)unity2D敌人的创建、人物属性设置,遇敌掉血
  • (博弈 sg入门)kiki's game -- hdu -- 2147
  • (附源码)springboot 房产中介系统 毕业设计 312341
  • (附源码)springboot掌上博客系统 毕业设计063131
  • (个人笔记质量不佳)SQL 左连接、右连接、内连接的区别
  • (转)程序员技术练级攻略
  • (转)大型网站的系统架构
  • (转载)(官方)UE4--图像编程----着色器开发
  • ./include/caffe/util/cudnn.hpp: In function ‘const char* cudnnGetErrorString(cudnnStatus_t)’: ./incl
  • .net core 客户端缓存、服务器端响应缓存、服务器内存缓存
  • .NET Core使用NPOI导出复杂,美观的Excel详解
  • .NET Framework 3.5中序列化成JSON数据及JSON数据的反序列化,以及jQuery的调用JSON
  • .net framework profiles /.net framework 配置
  • .net MySql
  • .Net 高效开发之不可错过的实用工具
  • .NET 使用 ILRepack 合并多个程序集(替代 ILMerge),避免引入额外的依赖
  • .net 使用$.ajax实现从前台调用后台方法(包含静态方法和非静态方法调用)
  • .NET8.0 AOT 经验分享 FreeSql/FreeRedis/FreeScheduler 均已通过测试