true if a specified argument is present in the array, or false otherwise. Note that ARRAY_CONTAINS employs IS NOT DISTINCT FROM semantics when comparing values, i.e. NULL is considered equal to NULL.
Alias: CONTAINS
Syntax
Parameters
Return Type
TheBOOLEAN value true if the element to be searched is present in the array, or false otherwise.
Examples
Returnstrue, since 'danielle53' is an element of the input array:
Rows: 1Execution time: 5.39ms
false, since 'danielle53' is not an element of the input array:
Rows: 1Execution time: 41.26ms
true, since NULL is an element of the input array:
Rows: 1Execution time: 10.20ms