Hexadecimal Constants | SQL External Routine Programming | Teradata Vantage - Hexadecimal 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 hexadecimal constants as follows.

IF a UDF is passed a constant value that uses this hexadecimal notation … THEN Teradata uses this data type to determine the precedence order …
'hexadecimal_digits'XC

'hexadecimal_digits'XCV

VARCHAR
'hexadecimal_digits'XCF CHAR
'hexadecimal_digits'XBV VARBYTE
'hexadecimal_digits'XB

'hexadecimal_digits'XBF

BYTE
'hexadecimal_digits'X

'hexadecimal_digits'XI

'hexadecimal_digits'XI4

INTEGER
'hexadecimal_digits'XI8 BIGINT
'hexadecimal_digits'XI2 SMALLINT
'hexadecimal_digits'XI1 BYTEINT