17.10 - HEXADECIMAL BYTE LITERALS - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-28
dita:mapPath
SQL_Functions__Expressions__and_Predicates.Upload_071421/djk1612415574830.ditamap
dita:ditavalPath
SQL_Functions__Expressions__and_Predicates.Upload_071421/wrg1590696035526.ditaval
dita:id
kby1472250656485

With respect to byte-bit system functions, hexadecimal byte literals are interpreted as follows:

A 2-byte hexadecimal byte literal: '00FF'XB



A 4-byte hexadecimal byte literal: '01020304'XB



Note that hexadecimal byte literals are represented by an even number of hexadecimal digits. Hexadecimal literals are extended on the right with zeros when required. For example:

A 3-byte hexadecimal byte literal, '112233'XB, becomes a 4-byte hexadecimal byte literal: '11223300'XB



For more information, see “Hexadecimal Byte Literals” in Teradata Vantage™ - Data Types and Literals, B035-1143.