16.20 - Expected Mode - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Teradata Database
Teradata Vantage NewSQL Engine
Release Number
March 2019
English (United States)
Last Update

Provides reasonable default widths for a character data type and client form-of-use. The expected export width multiplier for this case is 3 with an adjustment of 2.

In Expected mode, Teradata Database multiplies Unicode characters by 2 to calculate the number of bytes required to export Unicode strings to KanjiSJIS_0S because n Unicode characters translate to 2*n bytes in KanjiSJIS_0S.

For another example, suppose you want to export Unicode characters to KanjiEBCDIC5035_0I in Expected mode. In this case, Teradata Database multiplies the Unicode strings by 2 to determine the number of bytes to export, and, if the client is a mainframe, adds an additional 2 bytes to account for the Shift Out and Shift In characters needed for KanjiEBCDIC5035_0I to express any double byte characters if the client is a mainframe. This is because n Unicode characters are expected to take 2*n +2 bytes in KanjiEBCDIC5035_0I.