TO_BYTES Function | Data Types and Literals | VantageCloud Lake - TO_BYTES - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905
Decodes a sequence of characters in a given encoding into a sequence of bits. The following encodings are supported:
  • BaseX
  • BaseY
  • Base64M (MIME)
  • ASCII

where X is a power of 2 (for example, 2, 8, 16) and Y is not a power of 2 (for example, 10 and 36).

The result data type is VARBYTE or BLOB.

ANSI Compliance

This statement is a Teradata extension to the ANSI SQL:2011 standard.