ILIKE()
All functions > COMPARISON > ILIKE()
Case-insensitive wildcard match between two strings.
Signatures
Returns: TRUE, FALSE, or NULL
ILIKE(expr1: VARCHAR, expr2: VARCHAR, [escape: VARCHAR]) → BOOLEAN sql
| Parameter | Type | Required | Description |
|---|---|---|---|
expr1 | VARCHAR | Yes | String to match |
expr2 | VARCHAR | Yes | Pattern |
escape | VARCHAR | No | Escape character |
Notes
Uses the same % and _ wildcards as LIKE.
Related operators
Examples
ILIKE — functional call
FeatureQL
SELECT
f1 := ILIKE('Ab', 'a%') -- `ILIKE(expr, pattern)` matches keyword `ILIKE`
;Result
| f1 BOOLEAN |
|---|
| true |
ILIKE — chained
FeatureQL
SELECT
f1 := ('Ab').ILIKE('a%') -- Receiver is the string; argument is the pattern
;Result
| f1 BOOLEAN |
|---|
| true |