mysql workbench 6.2:缺少右括号

i2loujxw  于 2021-06-18  发布在  Mysql
关注(0)|答案(1)|浏览(470)

我有以下查询,它给出了一个错误:
错误:缺少“右括号”。

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))')
);
8ehkhllq

8ehkhllq1#

你可以试试这个:

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

相关问题