TO_BYTES

Teradata Vantageā„¢ Data Types and Literals

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1143-162K

Purpose

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).

Syntax



TD_SYSFNLIB.
Name of the database where the function is located.
instring
The string value, that is, sequence of characters to be decoded.
in_encoding
The encoding TO_BYTES uses to return the sequence of characters specified by instring.