Numeric Constants | SQL External Routine Programming | Teradata Vantage - Numeric Constants - Analytics Database - Teradata Vantage

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1147
lifecycle
latest
Product Category
Teradata Vantage™

Teradata converts numeric constants as follows.

IF a UDF is passed this numeric constant value … THEN Teradata uses this numeric data type to determine the precedence order …
-128 to 127 BYTEINT
-32768 to 32767 SMALLINT
-2147483648 to 2147483647 INTEGER
Values outside the INTEGER range and not more than 38 digits DECIMAL
Values with a decimal point and not more than 38 digits
Values with a decimal point and an exponent REAL