ARRAY Element Reference | Data Types and Literals | Teradata Vantage - ARRAY Element Reference - Teradata Vantage - Analytics Database

SQL Data Types and Literals

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-06
dita:mapPath
uds1628112204571.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
exs1472253032394
lifecycle
latest
Product Category
Teradata Vantageā„¢

Accesses the value of a specified element in an ARRAY data type value.

ANSI Compliance

This statement is ANSI SQL:2011 compliant, but includes non-ANSI Teradata extensions.

Syntax

array_expression [ index_value [...] ]
You must type the colored or bold brackets.

Syntax Elements

array_expression
An expression that evaluates to an ARRAY data type.
index_value

Index to the element in the array whose value you want to access.

For a 1-D ARRAY type, index_value must be a positive integer in the range from 1 to n, where n is the declared size of the ARRAY type.

For an n-D ARRAY type, index_value must be a positive or negative integer in the range from m to n, where m is the declared lower bound of a dimension of the array, and n is the declared upper bound.