Usage Notes | OLIMIT | VantageCloud Lake - OLIMIT Usage Notes - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

OLIMIT takes an array expression as an argument and returns the highest possible subscript value in the ARRAY type. If array_expr is a one-dimensional ARRAY type, OLIMIT returns an unsigned INTEGER value. If array_expr is a multidimensional ARRAY type, OLIMIT returns a new instance of the predefined ARRAY type ArrayVec, containing the subscript information.

If array_expr is NULL, an error is returned.

The OLIMIT method is compatible with the Oracle LIMIT method for one-dimensional ARRAY types. However, the empty set of parentheses required by Teradata syntax is a deviation from Oracle syntax.