Description
Creates a Variant object from the list of key/value pairs in the arguments list
Syntax
OBJECT_CONSTRUCT(key1, value1 [, key2, value2, ...])
Parameters
| Parameter | Description | Data Type | Required |
|---|---|---|---|
| key_value_pairs | Alternating keys and values. | Any | Yes |
Notes
- The keys must be literal strings
- The types are inferred from the selected values
Example
SELECT
OBJECT_CONSTRUCT('name', full_name, 'id', id)
FROM
rippling.employee.Employee
LIMIT
5;