17.10 - Changing or Overriding the TIME and TIMESTAMP Format Settings - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - Data Types and Literals

Advanced SQL Engine
Teradata Database
Release Number
Release Date
July 2021
Content Type
Programming Reference
Publication ID
English (United States)

You can change or override the TIME and TIMESTAMP format settings for field mode in the following ways:

  • Change the system default TIME and TIMESTAMP formats in the specification for data formatting (SDF) file.
  • Specify a format in a FORMAT phrase.

    The FORMAT phrase sets the format for a specific TIME or TIMESTAMP column or value. A FORMAT phrase overrides the system format.

The TIME and TIMESTAMP format setting pertains to data in report form, as is the case in BTEQ. The format does not control internal storage representation of data or data returned in record or indicator variable mode.

For details about the FORMAT phrase, see FORMAT Phrase and DateTime Formats or FORMAT Phrase, DateTime Formats, and Japanese Character Sets.