Character Truncation Rules - Advanced SQL Engine - Teradata Database

SQL Data Types and Literals

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
zsn1556242031050.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1143
lifecycle
previous
Product Category
Teradata Vantage™

The following rules apply to character strings.

IF the string is cast in this mode … THEN it is truncated of …
ANSI trailing pad character spaces to achieve the desired length. Truncation of other characters, or part of a multibyte character, returns an error.
Teradata trailing characters to achieve the desired length.

Truncation on Kanji1 character data types containing multibyte characters might result in truncating one byte of the multibyte character.