Description
Determines whether the specified value is found in the specified array
Syntax
ARRAY_CONTAINS(array, value_expression)
Parameters
| Parameter | Description | Data Type | Required |
|---|---|---|---|
| array | Array input | Array | Yes |
| element | The element argument | Any | Yes |
Notes
- Returns TRUE if the specified value is found in the specified array
- Comparisons are type-sensitive: '2' is not equal to 2
- If the array is NULL, the result is NULL
- If the value_expression is NULL, the result depends on array contents (can be NULL or FALSE)
Example
SELECT
ARRAY_CONTAINS(tags, 'eng')
FROM
rippling.employee.Employee
LIMIT
5;