Example: Three-Dimensional ARRAY and VARRAY Types With a Negative Lower Bound on a Dimension - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

The following example creates a 3-dimensional ARRAY type that has a negative lower bound value for its third dimension.

The following example uses Teradata-style syntax.

     CREATE TYPE seismic_cube_4 AS
     measures_udt ARRAY [5][7][-10:10];

The following example uses Oracle-style syntax to define an equivalent seismic_cube_4 type, seismic_cube_5.

     CREATE TYPE seismic_cube_5 AS
     VARRAY (5)(7)(-10:10) OF measures_udt;