Data Type Attributes - Teradata Vantage - Analytics Database

Database Introduction

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2023-09-27
dita:mapPath
gtm1628096154303.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
dsm1472253642401
lifecycle
latest
Product Category
Teradata Vantageā„¢

You can define the attributes of a data value.

Core data type attributes that the database supports include the following.

Data Type Attribute Description
NOT NULL Specifies that every field of a column must contain a non-null value.
UPPERCASE Specifies that character data for a column is stored as uppercase.
[NOT] CASESPECIFIC Specifies whether comparisons and collations of character data are case-specific..
FORMAT Controls the display of expressions, column data, and conversions between data types.
TITLE Defines a heading for displayed results. (Default is column name.)
AS Assigns a temporary name to an expression.
NAMED Assigns a temporary name to an expression.

Teradata extension to the ANSI standard. For ANSI compliance, use AS instead of NAMED.

DEFAULT Specifies that a user-defined default value is to be inserted in the field when a value is not specified for a column in an INSERT statement.
WITH DEFAULT Specifies that a system-defined default value is to be inserted in the field when a value is not specified for a column in an INSERT statement.
WITH TIME ZONE Used with the TIME or TIMESTAMP data type to specify a TIME or TIMESTAMP value with a displacement from UTC as defined for the system.
CHARACTER SET Specifies the server character set for a character column.

For a complete list of supported data type attributes and detailed information about each attribute, see Teradata Vantageā„¢ - Data Types and Literals, B035-1143.