ARRAY_Constructor_Expression | Data Types and Literals | Teradata Vantage - 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ā„¢

Constructs a new instance of an ARRAY type and initializes it using the ARRAY constructor method or function.

Syntax

[ NEW ] array_name ( [ element_expression [,...] ] )
array_name
The name of the ARRAY data type that you want to initialize.
element_expression

An expression that evaluates to a literal value. The data type of the value must be the same as the element type of the array_name array.

element_expression can be repeated n times, where n is the declared size of the array_name array. The maximum limit for n is 2559.