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

Teradata Database SQL Data Definition Language Syntax and Examples

prodname
Teradata Database
vrm_release
15.10
created_date
December 2015
category
Programming Reference
featnum
B035-1144-151K

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;