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

Teradata Vantage™ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1145-171K
Language
English (United States)
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).