Default Result for Character Data | Data Types and Literals | Teradata Vantage - Default Result for Character Data - 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 table shows the default if a CREATE TABLE, ALTER TABLE, or SELECT statement does not include the FORMAT phrase.

IF the data type is … THEN …
CHARACTER return the full length specified for a fixed-length CHARACTER column (that is, pad characters are returned unless TRIM is included in the SELECT statement).
VARCHAR return the actual character string.
CLOB
  • If the server character set is LATIN and the length of the CLOB is < 64000, then return the actual character string.
  • If the server character set is LATIN and the length of the CLOB is ≥ 64000, then return the first 64000 characters.
  • If the server character set is UNICODE and the length of the CLOB is < 32000, then return the actual character string.
  • If the server character set is UNICODE and the length of the CLOB is ≥ 32000, then return the first 32000 characters.