NUMBER Data Type | Data Types and Literals | Teradata Vantage - NUMBER Data Type - Advanced SQL Engine - Teradata Database

SQL Data Types and Literals

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
tpf1598412463935.ditamap
dita:ditavalPath
tpf1598412463935.ditaval
dita:id
B035-1143
lifecycle
previous
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.