16.20 - Example: Three-Dimensional ARRAY and VARRAY Types With a Negative Lower Bound on a Dimension - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Content Type
Programming Reference
Publication ID
B035-1144-162K
Language
English (United States)
Last Update
2019-05-24

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;