LIKE/NOT LIKE Predicate Examples | Teradata Vantage - 17.00 - 17.05 - Miscellaneous Examples - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
17.05
Published
June 2020
Language
English (United States)
Last Update
2021-01-30
dita:mapPath
tpt1555966086716.ditamap
dita:ditavalPath
lze1555437562152.ditaval
Function Result
_KanjiSJIS ‘92abc’ LIKE _Unicode ‘%abc’ TRUE
_KanjiSJIS ‘92abc’ LIKE _Unicode ‘%abc’ FALSE

% (FULLWIDTH PERCENT SIGN) is not a metacharacter in either KanjiSJIS or Unicode.

‘c%’ LIKE ‘c%%’ ESCAPE ‘%’ TRUE
‘c%’ LIKE ‘c%%’ ESCAPE ‘%’ FALSE

% (FULLWIDTH PERCENT SIGN) does not match % (PERCENT SIGN).