Indexing Geometric Data : Index « Geometric « SQL / MySQL






Indexing Geometric Data

    
mysql>
mysql> CREATE TABLE mountain (
    ->     id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
    ->     pt POINT NOT NULL,
    ->     SPATIAL INDEX(pt)
    -> );
Query OK, 0 rows affected (0.00 sec)

mysql>
mysql>
mysql> drop table mountain;
Query OK, 0 rows affected (0.00 sec)

   
    
    
    
  








Related examples in the same category

1.Alter table to add SPATIAL INDEX