LIKE/NOT LIKE Predicate Syntax | VantageCloud Lake - LIKE/NOT LIKE Predicate Syntax - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530
{ expression [NOT] LIKE
    { pattern_expression | [ ALL | ANY | SOME ] ( subquery ) } |

  ( expression [,...]) } [NOT] LIKE [ ALL | ANY | SOME ]
    { ( subquery ) | ( pattern_expression [,...] ) }

} [ ESCAPE escape_character ]

Syntax Elements

expression
A character string or character string expression argument to be searched for the substring pattern_expression.
pattern_expression
A character expression for which expression is to be searched.
ALL
ANY
SOME
A quantifier that allows one or more expressions to be searched for one or more patterns or for one or more values returned by a subquery.
subquery
{ expr | ( expr [,...] ) } [ NOT ] LIKE quantifier (subquery)
A subquery that selects the same number of expressions as are specified in the expression or list of expressions.
The subquery cannot specify a SELECT AND CONSUME statement.
escape_character
Keyword/variable combination specifying a single escape character (single or multibyte).