gpt4 book ai didi

MySQL工作台6.2 : Missing closing parenthesis

转载 作者:行者123 更新时间:2023-11-29 16:56:52 27 4
gpt4 key购买 nike

我有以下查询,但出现错误:

错误:缺少“右括号”。

SELECT geomfromtext('polygon(('CONCAT(GROUP_CONCAT(a.latitude ,' ', a.longitude),'11.12345 66.65432')'))')
FROM GeometryTable a

这是最终的查询:

SELECT a.* FROM GeometryTable a 
WHERE
mbrintersects
(
geomfromtext('polygon(('CONCAT(GROUP_CONCAT(a.latitude ,' ', a.longitude),'11.12345 66.65432')'))'),
geomfromtext('polygon((11.59679 79.50852,12.89778 76.51863,12.89096 76.5176,11.59679 79.50852))')
);

最佳答案

你可以试试这个:

select geomfromtext(CONCAT('polygon(',GROUP_CONCAT(a.latitude,' ',a.longitude),'11.12345 66.65432)'))
FROM GeometryTable a

关于MySQL工作台6.2 : Missing closing parenthesis,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52513738/

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