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

Updates all or a subset of the elements in array_expr to the specified new value. The stride argument indicates how many elements should be skipped between each updated element.

Syntax

System Function
ARRAY_UPDATE_STRIDE ( array_expr, new_value, stride [, { scope_reference | array_index } ] )
Method-Style
array_expr.ARRAY_UPDATE_STRIDE ( new_value, stride [, { scope_reference | array_index } ] )
array_expr
An ARRAY expression, which is one of the following:
  • A reference to an ARRAY column
  • An ARRAY constructor expression
  • A UDF expression
  • A UDM expression
new_value
An expression that evaluates to a value with the same data type as the element type of array_expr.
stride
An unsigned integer value indicating the number of elements that should be skipped between each updated element.
scope_reference
An ARRAY scope reference.
array_index
Specifies one of the following:
  • An integer value.
  • An array instance of the predefined array type ArrayVec with a comma-separated list of integer values to define the bounds.
  • The value of array_index must be within the limits of array_expr.