st_pointfromtext.sql 360 B

1234567891011
  1. -- The point_test table is created with the single ST_Point column pt1.
  2. CREATE TABLE point_test (pt1 ST_Point);
  3. -- The ST_PointFromText function converts the point text coordinates
  4. -- to the point format before the INSERT statement inserts the point
  5. -- into the pt1 column.
  6. INSERT INTO point_test VALUES(
  7. ST_PointFromText('point(10.01 20.03)', 1000)
  8. );