Example: ST_AsText - Teradata Vantage NewSQL Engine - 16.20

Teradata Vantage™ Geospatial Data Types

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1181-162K
CREATE TABLE sample_streets(
skey INTEGER,
streetName VARCHAR(40),
streetShape ST_GEOMETRY);

INSERT INTO sample_streets
 VALUES(1, 'Main Street', 'LINESTRING(2 2, 3 2, 4 1)');
INSERT INTO sample_streets
 VALUES(1, 'Coast Blvd', 'LINESTRING(12 12, 18 17)');
   
SELECT streetShape.ST_AsText()
FROM sample_streets
WHERE skey < 1001;