gpt4 book ai didi

mysql - 为什么我的查询会导致 1064 (42000) 错误?

转载 作者:行者123 更新时间:2023-11-29 01:25:04 25 4
gpt4 key购买 nike

查询问题,我一生都无法弄清楚这个查询出了什么问题

HAVING distance  ='10'
GROUP BY c.ancient,
c.ant_name,
p.upper,
p.name,

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY c.city_id, c.city_name, p.prop_ynow_id, p.Name, pr.PRE_Ident SELECT dis' at line 1

最佳答案

HAVING 位于 GROUP BY 之后。 MySQL 就是这样挑剔的。

关于mysql - 为什么我的查询会导致 1064 (42000) 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3567140/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com