记录一下关于mysql的一个报错问题解决方案:In aggregated query without GROUP BY, expression #1 of SELECT list contains nonaggregated column ‘yunva_changke.u.user_id’; this is incompatible with sql_mode=only_full_group_by
问题描述:是因为mysql的sql_mode默认开启了only_full_group_by 模式,导致Mysql的Sql的group by规则跟Oracle类似了,所以去掉这个默认就可以了
具体方法:
1.查看sql_mode模式,如果sql_mode显示为:only_full_group_by,执行步骤二即可
mysql>show variables like ‘%sql_mode’;

mysql> show session variables like ‘%sql_mode%’;
mysql> show global variables like ‘%sql_mode%’;

2.
mysql> set global sql_mode=”;
mysql> set session sql_mode=”;
具体转载:https://blog.csdn.net/reblue520/article/details/52541176


In aggregated query without GROUP BY报错相关推荐

  1. MYSQL||报错:In aggregated query without GROUP BY, expression #1 of SELECT list contains nonaggregated

    碎碎念: 兄弟萌,我胡汉三又回来啦(。・∀・)ノ゙嗨,最近在期末考,一不小心二十几天没发博了,年底KPI没冲成功,今天就来补一下下§(* ̄▽ ̄*)§ 一.问题描述 今天在牛客网做SQL的题:牛客的课程 ...

  2. mysql 报错:1140 In aggregated query without GROUP BY, expression #

    1140 In aggregated query without GROUP BY, expression #1 of SELECT list contains nonaggregated colum ...

  3. group by 报错 出现In aggregated query without

    记录一下关于mysql的一个报错问题解决方案: In aggregated query without GROUP BY, expression #1 of SELECT list contains ...

  4. mysql报错In aggregated query without GROUP BY

    执行语句: select de.dept_no, count(s.salary) from salaries s left join dept_emp de on s.emp_no = de.emp_ ...

  5. In aggregated query without GROUP BY, expression #2 of SELECT list contains nonaggregated column...

    ERROR 1140 (42000): In aggregated query without GROUP BY, expression #1 of SELECT list contains nona ...

  6. mysql:In aggregated query without GROUP BY, expression #1 of SELECT list contains...........

    文章目录 问题描述 问题溯源 解决方式一 解决方法二 附录: 问题描述 下面是报错截图: 1140 - In aggregated query without GROUP BY, expression ...

  7. In aggregated query without GROUP BY

    1.问题: 查询语句: select count(support) supportCount,count(collection) collectionCount, support,collection ...

  8. MySQLSyntaxErrorException: In aggregated query without GROUP BY聚合查询语法异常

    MySQLSyntaxErrorException: In aggregated query without GROUP BY,this is incompatible with sql_mode=o ...

  9. In aggregated query without GROUP BY是什么错误

    本文所使用的表: 表 sc ±-----±------+ | sid | score | ±-----±------+ | 01 | 80.0 | | 01 | 90.0 | | 01 | 99.0 ...

最新文章

  1. 【DP】[ZJOI2008][HYSBZ/BZOJ1037]生日聚会Party
  2. VTK:Math之1DTupleInterpolation
  3. java版本-API接口测试框架搭建
  4. 想快速了解AI各领域的前沿研究成果?可以来这个网站看看 | 资源
  5. 推荐一个JavaScript触发器插件,可通过指定频次、指定时间内触发指定的处理函数...
  6. 开发环境搭建好,也要做镜像
  7. 苹果录制屏幕在哪设置_屏幕录像专家如何录全屏 屏幕录像专家全屏录制设置方法...
  8. 【破解APP抓包限制】Xposed+JustTrustMe关闭SSL证书验证
  9. c语言链栈案例,C语言链栈
  10. 【解决问题】RuntimeError: The size of tensor a (80) must match the size of tensor b (56) at non-singleton
  11. 肩部复杂的类人肌骨机器人手臂连杆机构
  12. 抖音小店商品如何挂到精选联盟上面?带货有什么技巧方法?
  13. Linux那些事儿之我是U盘(16)冰冻三尺非一日之寒
  14. 游戏开发论坛_《原神》称霸苹果「2020年度iPhone游戏奖」
  15. PettingZoo:多智能体游戏环境库入门
  16. 那些与三维激光扫描有关的建模
  17. TiDB 在国信证券海量数据高并发场景中的实践
  18. Python中sub()用法
  19. 机器人社社长事迹_科技之星事迹材料
  20. 《比尔总动员》视频录制大赛正式启动

热门文章

  1. DDS格式介绍及相关工具
  2. Gurobi 解运输问题 python
  3. 5、TORCH.RANDOM
  4. UG4.0高级塑胶模具设计视频教程-陈工73G
  5. 利用excel求特定条件下的最大/小值(maxif/minif)
  6. 运维到底是干什么的?看完这篇你就懂了
  7. Windows Service服务 出现System.Security.SecurityException: 未找到源,但未能搜索某些或全部事件日志
  8. java架构师培训:java最佳测试框架JBehave的基本介绍
  9. 使用Visio 2007画用例图没有include(包含)关系且包含关系使用的线不是虚线的解决办法...
  10. Yen Threshoding