ARRAY_CONSTRUCT
functionsupportedCore SQL functionsReturns an array constructed from zero, one, or more inputs. For more information about constructing and using arrays, see ARRAY.
Syntax
supportedpartialnot supportednot scored
ARRAY_CONSTRUCT( [ <expr1> ] [ , <expr2> [ , ... ] ] )
Returns
The data type of the returned value is ARRAY.
Usage notes
- If the function is called with N arguments, the size of the resulting array is N.
- In many contexts, you can use an ARRAY constant (also called an ARRAY literal) instead of the ARRAY_CONSTRUCT function.
- An array can contain both SQL NULL values and JSON null values. For more information, see NULL values.