17.05 - Example - Teradata Database

Teradata Vantage™ - Geospatial Data Types

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
17.05
created_date
June 2020
category
Programming Reference
featnum
B035-1181-170K
CREATE TABLE varbyte_tab1 (a int, b VARBYTE (6000));
INSERT INTO varbyte_tab1 VALUES (1002, NEW ST_Geometry(
 'Point(10 20 30)').ST_Asbinary());
INSERT INTO sample_shapes
SELECT a, SYSSPATIAL.ST_GeomFromWKB(b) FROM varbyte_tab1;
SELECT * FROM sample_shapes;