LIKE
Tests whether an expression matches one or more patterns. Comparisons are case-sensitive.
Syntax
expression [ NOT ] LIKE pattern → boolean
expression: The expression to compare.
NOT: A keyword that inverts the return value.
pattern: The pattern that is compared to the expression.
Examples
expression [ NOT ] LIKE pattern ESCAPE escape_character → boolean
expression: The expression to compare.
NOT: A keyword that inverts the return value.
pattern: The pattern that is compared to the expression.
escape_character: Putting escape_character before a wildcard in pattern makes LIKE treat the wildcard as a regular character when it appears in expression.
Examples
expression [ NOT ] LIKE { ANY | SOME | ALL } ( [ pattern [, …] ] ) → boolean
expression: A
STRING
expression.NOT: A keyword that inverts the return value.
ANY or SOME or ALL: Keywords indicating whether the expression must match at least one pattern or must match all patterns.
pattern: One or more
STRING
expressions.
Examples
Last updated