16.10 - Data Type Default Formats - 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

Teradata SQL uses a set of default formats for displaying expressions and column data, and for conversions between data types.

For example, Teradata Database assigns a format to every column of a table at the time the table is created. If the CREATE TABLE statement omits the format for a column, then Teradata Database assigns a default format for the data type of the column.

You can override the default format by using the FORMAT phrase in conjunction with a CREATE TABLE, ALTER TABLE, SELECT, UPDATE, DELETE, MERGE, or INSERT statement. For details, see FORMAT.

You can change the default formats that Teradata SQL uses to display numeric, date, and time data types. For details, see Changing the Default Formats.

You can also use the FORMAT phrase with CAST or with Teradata conversion syntax to convert data from one type to another. For details, see “Data Type Conversions” in SQL Functions, Operators, Expressions, and Predicates.