LIKE
Pattern-matching conditions
Description
The LIKE operator compares a string expression, such as a column name, with a pattern that uses the wildcard characters % (percent) and _ (underscore). LIKE pattern matching always covers the entire string. To match a sequence anywhere within a string, the pattern must start and end with a percent sign. (Redshift SQL Language reference LIKE).
This grammar is fully supported in Snowflake.
Grammar Syntax
Sample Source Patterns
Setup data
Like
Input Code:
Output Code:
Not like
Input Code:
Output Code:
Escape characters
Input Code:
Output Code:
ILike
Input Code:
Output Code:
Operators
The following operators are translated as follows:
Redshift
Snowflake
~~
LIKE
!~~
NOT LIKE
~~*
ILIKE
!~~*
NOT ILIKE
Input Code:
Output Code:
Known Issues
The behavior of fixed char types may differ. Click here for more information.
Related EWIs
There are no known issues.
Last updated