Example: NUMBER Data Type - 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

Consider the following table definition:

CREATE TABLE num_tab
  (n1 NUMBER(*,3),
   n2 NUMBER,
   n3 NUMBER(*),
   n4 NUMBER(5,1),
   n5 NUMBER(3) );

The following table shows the result of inserting values into a column defined as NUMBER (3).

Inserted Value Value of Column n5
1.234 1
123.6789 124
1234.56 An error is returned because the inserted value exceeds the size of column n5.

The following table shows the result of inserting values into a column defined as NUMBER (*,3).

Inserted Value Value of Column n1
1.234 1.234
1234.6789 1234.679