mysql geometry INSERT

select GeomFromText('POINT(50 70)') from dual;

//
INSERT INTO location (name,pos)
VALUES('abc',GeomFromText('POINT(50 70)'));


//
SELECT Concat(X(pos),' ,',Y(pos))AS pos FROM location;
RESULT:
50,70

你可能感兴趣的:(mysql geometry INSERT)