ILIKE_ALL()
All functions > COMPARISON > ILIKE_ALL()
TRUE if the string matches ILIKE for every pattern in an array.
Signatures
Returns: TRUE, FALSE, or NULL following three-valued logic for NULL inputs or pattern elements
ILIKE_ALL(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_ALL — functional call
FeatureQL
SELECT
f1 := ILIKE_ALL('Hello', ARRAY['%e%', '%o']) -- `ILIKE_ALL(expr, patterns)` matches keyword `ILIKE ALL`
;Result
| f1 BOOLEAN |
|---|
| true |
ILIKE_ALL — chained
FeatureQL
SELECT
f1 := ('Hello').ILIKE_ALL(ARRAY['%e%', '%o']) -- Receiver is the string; argument is the pattern array
;Result
| f1 BOOLEAN |
|---|
| true |