ILIKE_ANY()
All functions > COMPARISON > ILIKE_ANY()
TRUE if the string matches ILIKE for at least one pattern in an array.
Signatures
Returns: TRUE, FALSE, or NULL following three-valued logic for NULL inputs or pattern elements
ILIKE_ANY(expr1: VARCHAR, patterns: ARRAY(VARCHAR), [escape: VARCHAR]) → BOOLEAN sql
| Parameter | Type | Required | Description |
|---|---|---|---|
expr1 | VARCHAR | Yes | String to test |
patterns | ARRAY(VARCHAR) | Yes | Wildcard patterns (%, _); same escape rules as LIKE |
escape | VARCHAR | No | Escape character for % / _ in each pattern |
Notes
- Keyword form:
ILIKE ANY (pat1, pat2, …)(andALL/NONE), optionalESCAPE escape; callable / chained forms useARRAY(...)/ARRAY[...]and an optional thirdescapeargument - Wildcards
%and_in each pattern - Case-insensitive ILIKE per pattern where the dialect supports it; otherwise lowercasing is used in translation
- Same ANY / ALL / NONE rules as
LIKE_*on arrays - NULL
expr1or NULLpatterns→ NULL - BigQuery: this form is not translated (
NOT_SUPPORTED)
Related operators
Examples
ILIKE_ANY — functional call
FeatureQL
SELECT
f1 := ILIKE_ANY('Hello', ARRAY['%xx%', '%ll%']) -- `ILIKE_ANY(expr, patterns)` matches keyword `ILIKE ANY`
;Result
| f1 BOOLEAN |
|---|
| true |
ILIKE_ANY — chained
FeatureQL
SELECT
f1 := ('Hello').ILIKE_ANY(ARRAY['%xx%', '%ll%']) -- Receiver is the string; argument is the pattern array
;Result
| f1 BOOLEAN |
|---|
| true |