contains any
The CONTAINS ANY
and NOT CONTAINS ANY
operator is used to evaluate whether a particular set includes any of the given values.
<set> CONTAINS ANY (<value>, <value>, ...)
<set> NOT CONTAINS ANY (<value>, <value>, ...)
<set>
- A set of values to consider.
TRUE
- If the set contains any of the values provided. This includes if any of the values provided is null and the set contains at least one null.
Or
FALSE
in the case of theNOT CONTAINS ANY
operator. FALSE
- If the set does not contain any of the given values and the set does not contain any nulls. Or
TRUE
in the case of theNOT CONTAINS
operator. NULL
- If the set contains at least one null and does not contain any of the values provided and none of the values is null.
DATABASES CONTAINS ANY ("MY DATABASE", "OTHER DATABASE")
DATABASES CONTAINS ANY (null, "MY DATABASE")
DATABASES NOT CONTAINS ANY (null, "MY DATABASE")