DECIMAL/NUMERIC Data Types | Data Types and Literals | Teradata Vantage - 17.10 - DECIMAL/NUMERIC Data Types - 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)

Represents a decimal number of n digits, with m of those n digits to the right of the decimal point.

ANSI Compliance

NUMERIC is in the ANSI SQL:2011 standard. DECIMAL is a Teradata synonym for NUMERIC.


{ DECIMAL | DEC | NUMERIC } [ ( n [, m ] ) ] [ attributes [...] ]

Syntax Elements

The precision (the maximum number of digits that can be stored).
The range is from 1 through 38.
The scale (the number of fractional digits).
The range is from 0 through n.
When values are not specified for n, m, then the default is DECIMAL(5, 0).
When a value is not specified for m, then the default is DECIMAL(n, 0).
Appropriate data type attributes, column storage attributes, or column constraint attributes.
See Core Data Type Attributes and Constraint Attributes for specific information.