Example: Using an ARRAY Constructor Expression

Teradata Vantageā„¢ Data Types and Literals

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1143-162K

Consider the following 1-D ARRAY data type:

CREATE TYPE phonenumbers_ary AS CHAR(10) ARRAY[5];

The following shows an ARRAY constructor expression that sets the first two elements in phonenumbers_ary to the provided values, and the rest of the elements in the array are set to an uninitialized state.

NEW phonenumbers_ary('5551234567', '8585551234')

or

phonenumbers_ary('5551234567', '8585551234')