Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The used table type doesn't support SPATIAL indexes

Tags:

sql

mysql

"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")

like image 761
Srinath Thota Avatar asked Aug 22 '13 11:08

Srinath Thota


People also ask

What is a spatial index in database?

A spatial index is a type of extended index that allows you to index a spatial column. A spatial column is a table column that contains data of a spatial data type, such as geometry or geography.

What is spatial index in mysql?

SPATIAL INDEX creates an R-tree index. For storage engines that support nonspatial indexing of spatial columns, the engine creates a B-tree index. A B-tree index on spatial values is useful for exact-value lookups, but not for range scans.

What is spatial index Oracle?

4.1 Creating a Spatial Index. Once data has been loaded into the spatial tables through either bulk or transactional loading, a spatial index must be created on the tables for efficient access to the data. Each spatial index can be an R-tree index or a quadtree index.


1 Answers

Mysql support spatial index only with *.myisam tables, i.e. the ISAM engine. Link: http://dev.mysql.com/doc/refman/5.0/en/creating-spatial-indexes.html

like image 168
Micromega Avatar answered Sep 20 '22 08:09

Micromega