LIKE/NOT LIKE Predicate Syntax | Teradata Vantage - LIKE/NOT LIKE Predicate Syntax - Analytics Database - Teradata Vantage

SQL Functions, Expressions, and Predicates

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-01-12
dita:mapPath
obm1628111499646.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
kby1472250656485
lifecycle
latest
Product Category
Teradata Vantageā„¢
{ 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).