Example: Using an ARRAY Constructor Expression - Advanced SQL Engine - Teradata Database

SQL Data Types and Literals

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
zsn1556242031050.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1143
lifecycle
previous
Product Category
Teradata Vantageā„¢

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')