DECIMAL/NUMERIC Data Types Syntax - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

Syntax

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

Syntax Elements

n
The precision (the maximum number of digits that can be stored).
The range is from 1 through 38.
m
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).
attributes
Appropriate data type attributes, column storage attributes, or column constraint attributes.
See Core Data Type Attributes and Constraint Attributes for specific information.