LIKE
Applies to: CELONIS 4.0 CELONIS 4.2 CELONIS 4.3 CELONIS 4.4 CELONIS 4.5 CELONIS 4.6
Description
The LIKE
predicate determines whether the right expression string matches the left expression string. The output can be negated by using NOT LIKE
.
LIKE can only be applied to STRING values.
[NOT] LIKE
can be used in the following contexts:
Syntax
table.column LIKE pattern
table.column NOT LIKE pattern
Wildcards
The following wildcards can be used in the right pattern expression:
%: Matches any string with zero or more characters.
_: Matches exactly one character.
Wildcards can be escaped with a backslash (\%, \_). If no wildcards are contained, leading and trailing % wildcards are assumed, and comparison is not case sensitive.
Examples
[1] No wildcards are included. LIKE will assume leading and trailing '%' wildcards, which means that LIKE matches in all examples. |
[2] Wildcards are included. LIKE will not leading and trailing '%' wildcards, which means that LIKE does not match in all examples. |
[3] Wildcards are included. LIKE will not leading and trailing '%' wildcards, but in all examples, LIKE matches. |
[4] If no wildcards are included, comparison is case insensitive. If wildcards are included, comparison is case sensitive.
|
[5]
|
[6] If any side of the LIKE operator is NULL, NULL is returned. |
[7] Wildcards can be escaped with a backslash. |
[8] The expression strings can also be string literals. |
[9] Use LIKE in a FILTER expression.
|