16.10 - Example: Formatting Characters - Teradata Database

Teradata Database SQL Data Types and Literals

prodname
Teradata Database
vrm_release
16.10
created_date
June 2017
category
Programming Reference
featnum
B035-1143-161K

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