I need unique (or primary) key with spatial (POINT) column. But when i try somthing like:
mysql> create table m (g Point primary key);
mysql> insert into m (g) values (PointFromText('point(1 1)'));
mysql> insert into m (g) values (PointFromText('point(1 2)'));
ERROR 1062: Duplicate entry '' for key 1
Why it's duplicate entry & how to do it?
mysql> create table m (g Point primary key);
mysql> insert into m (g) values (PointFromText('point(1 1)'));
mysql> insert into m (g) values (PointFromText('point(1 2)'));
ERROR 1062: Duplicate entry '' for key 1
Why it's duplicate entry & how to do it?