我有以下查询,但出现错误:
错误:缺少“右括号”。
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/