16.20 - Example: Using INDEX with KANJI1 and KanjiEBCDIC - Teradata Database

Teradata Vantage™ - SQL Functions, Expressions, and Predicates

prodname
Advanced SQL Engine
Teradata Database
vrm_release
16.20
created_date
March 2019
category
Programming Reference
featnum
B035-1145-162K

The following examples show how INDEX(string_1, string_2) operates when the server character set for both arguments is KANJI1 and the client character set is KanjiEBCDIC.

Note that for KanjiEBCDIC, results are returned in terms of physical units, making INDEX DB2-compliant in that environment.

IF string_1 contains … AND string_2 contains … THEN the result is …
MN<AB> <B> 6
MN<AB> <A> 4
MN<AB>P P 9
MX N<AB>P <B> 7