Example: 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™

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 various values into a column defined as NUMBER (3).

If you insert this value... the value of column n5 will be...
1.234 1
123.6789 124
1234.56 An error is returned since the inserted value exceeds the size of column n5.

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

If you insert this value... the value of column n1 will be...
1.234 1.234
1234.6789 1234.679