16.20 - Example: ST_AsText - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ Geospatial Data Types

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1181-162K
Language
English (United States)
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;