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.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
tpf1598412463935.ditamap
dita:ditavalPath
tpf1598412463935.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')