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

Performs a pairwise comparison of the elements of two arrays and returns a value of 1, 0, or NULL to indicate whether or not the two array arguments contain the same element values.

Syntax

System Function
ARRAY_COMPARE ( expr1, expr2 [, scope_reference, nulls_equal_flag ] )
Method-Style
expr1.ARRAY_COMPARE ( expr2 [, scope_reference, nulls_equal_flag ] )
expr1/expr2
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
scope_reference
An ARRAY scope reference.
nulls_equal_flag
A flag that specifies how NULL element values should be compared. Valid values for this parameter are 0 and 1.