MySQL Forums
Forum List  »  GIS

MySQL Spatial features - Examples
Posted by: Mohamed Ben Abdelkader
Date: March 09, 2010 08:30AM

I have tried to do this exemple

CREATE TABLE address (
address CHAR(80) NOT NULL,
address_loc POINT NOT NULL,
PRIMARY KEY(address),
SPATIAL KEY(address_loc)
);

INSERT INTO address VALUES('Foobar street 12', GeomFromText('POINT(2671 2500)'));
INSERT INTO address VALUES('Foobar street 56', GeomFromText('POINT(2971 2520)'));

And the result was:



What's the probleme with address_loc?

Options: ReplyQuote


Subject
Views
Written By
Posted
MySQL Spatial features - Examples
7102
March 09, 2010 08:30AM
2753
March 22, 2010 11:44AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.