Examples | TO_BYTES Function | Teradata Vantage - 17.10 - Example: Decoding a Sequence of Characters to Base16 - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - Data Types and Literals

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1143-171K
Language
English (United States)

The following query:

SELECT CAST (TO_BYTES ('5A', 'base16') as BYTE (16));
TO_BYTES('5A','base16')

returns '5A-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 '