原文:mysql 8.0下的SELECT list is not in GROUP BY clause and contains nonaggregated column

mysql的版本 mysql gt select version version . . 在执行group by时遇到报错,具体如下 mysql gt select from api properties GROUP BY file id order by file id Expression of SELECT list is not in GROUP BY clause and contain ...

2019-08-27 17:27 0 1206 推荐指数:

查看详情

SELECT list is not in GROUP BY clause and contains nonaggregated column

报错如下: 问题出现的原因: MySQL 5.7.5及以上功能依赖检测功能。如果启用了ONLY_FULL_GROUP_BY SQL模式(默认情况),MySQL将拒绝选择列表,HAVING条件或ORDER BY列表的查询引用在GROUP BY子句中既未命名的非集合列,也不在功能上 ...

Tue Nov 27 22:16:00 CST 2018 0 19191
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM