7

"The used table type doesn't support SPATIAL indexes"

I have got this error in MySQL when i am running a query which includes "contains" keyword. How to make a table support "SPATIAL indexes". The query is

select * from table where contains(column,"1")

4

2 回答 2

10

Mysql 仅支持 *.myisam 表的空间索引,即 ISAM 引擎。链接:http ://dev.mysql.com/doc/refman/5.0/en/creating-spatial-indexes.html

于 2013-08-22T12:02:56.887 回答
6

Mysql 对空间索引的支持首先为具有 MyISAM 引擎的表添加。从 5.7.5 版开始添加对 InnoDB 引擎的支持。

MyISAM: >= 5.0
InnoDB: >= 5.7.5
于 2016-06-29T09:43:17.297 回答