16.20.16.20 - 16.20 - Example: Formatting Characters - Teradata Vantage NewSQL Engine

Teradata Vantage™ Data Types and Literals

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1143-162K

Assume your data is the character string ‘HELLO’.

IF the format is … THEN this is displayed …
FORMAT 'X(6)'
HELLO with trailing blank
FORMAT 'X'
H