NOT_LIKE()
All functions > COMPARISON > NOT_LIKE()
Returns TRUE if a string does NOT match a specified pattern with wildcards.
Signatures
Returns: TRUE if the string matches, FALSE if not, NULL if an input is NULL
NOT_LIKE(expr1: VARCHAR, expr2: VARCHAR, [escape: VARCHAR]) → BOOLEAN sql
| Parameter | Type | Required | Description |
|---|---|---|---|
expr1 | VARCHAR | Yes | String to match |
expr2 | VARCHAR | Yes | Pattern (% and _ wildcards) |
escape | VARCHAR | No | Escape character for wildcards |
Notes
- Opposite of LIKE
- Wildcard pattern matching (
%,_) - Case-sensitive matching
- NULL inputs return NULL
Related operators
Examples
NOT_LIKE — functional call
FeatureQL
SELECT
f1 := NOT_LIKE('hello', 'world') -- `NOT_LIKE(expr, pattern)` matches keyword `NOT LIKE`
;Result
| f1 BOOLEAN |
|---|
| true |
NOT_LIKE — chained
FeatureQL
SELECT
f1 := ('hello').NOT_LIKE('world') -- Receiver is the string; argument is the pattern
;Result
| f1 BOOLEAN |
|---|
| true |