NUMBER Data Type | Data Types and Literals | Teradata Vantage - NUMBER Data Type - Teradata Vantage - Analytics Database

SQL Data Types and Literals

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
2025-11-06
dita:mapPath
uds1628112204571.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
exs1472253032394
lifecycle
latest
Product Category
Teradata Vantageā„¢

Represents a numeric value with optional precision and scale limitations.

ANSI Compliance

NUMBER is a Teradata extension to the ANSI SQL:2011 standard.

Syntax

NUMBER [ ( { n | * } [, m ] ) ] [ attributes [...] ]

Syntax Elements

n
The precision.
The range is from 1 to 38.
m
The scale. This indicates the maximum number of digits allowed to the right of the decimal point.
If * is specified, the range of m is from 0 to 38.
If n is specified, the range of m is from 0 to n.
attributes
Appropriate data type attributes, column storage attributes, or column constraint attributes.
See Core Data Type Attributes and Constraint Attributes for specific information.