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
ParameterTypeRequiredDescription
expr1VARCHARYesString to match
expr2VARCHARYesPattern (% and _ wildcards)
escapeVARCHARNoEscape 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

Last update at: 2026/05/26 17:22:09