Description
Returns an array constructed from zero, one, or more inputs
Syntax
ARRAY_CONSTRUCT([expression1 [, expression2 ...]])
Parameters
| Parameter | Description | Data Type | Required |
|---|---|---|---|
| elements | Variadic array elements. | Any | Yes |
Notes
- Each expression can be of any data type
- The resulting array will contain all elements in the order provided
- Returns an empty array if no input is provided
Example
SELECT
ARRAY_CONSTRUCT('a', 'b', 'c')
FROM
rippling.employee.Employee
LIMIT
5;