Numeric Constants | SQL External Routine Programming | Teradata Vantage - Numeric Constants - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
qwr1571437338192.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantage™

Teradata Database 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