Changing the Default Formats - 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™

You can change the default formats that Teradata SQL uses for the following data types:

  • BIGINT
  • BYTEINT
  • DATE
  • DECIMAL/NUMERIC
  • FLOAT/REAL/DOUBLE PRECISION
  • INTEGER
  • NUMBER
  • SMALLINT
  • TIME and TIME WITH TIME ZONE
  • TIMESTAMP and TIMESTAMP WITH TIME ZONE

To change the data type default formats, you must create a specification for data formatting (SDF) file, and then use the tdlocaledef utility. For more information, see Teradata Vantage™ - Database Utilities , B035-1102 .

Teradata Database uses the changes when it assigns formats to columns of new tables where the CREATE TABLE statement does not explicitly specify the column format. Columns of tables that were created prior to changing the default formats continue to use the format that Teradata Database assigned to the column at the time the table was created.

To view the settings of the preceding data type default formats for the current session, use the HELP SESSION statement. For more information, see “HELP” and “SHOW” in Teradata Vantage™ - SQL Data Definition Language Syntax and Examples, B035-1144.