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

Teradata Vantageā„¢ - Data Types and Literals

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1143-171K
Language
English (United States)

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.