FROM_BYTES Function | Data Types and Literals | Teradata Vantage - FROM_BYTES - Advanced SQL Engine - Teradata Database

SQL Data Types and Literals

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
zsn1556242031050.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1143
lifecycle
previous
Product Category
Teradata Vantageā„¢
Encodes a sequence of bits into a sequence of characters representing its encoding. 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.] TO_BYTES ( instring, out_encoding )
TD_SYSFNLIB.
Name of the database where the function is located.
instring
The binary string value, that is, the sequence of characters to be encoded.
out_encoding
The encoding FROM_BYTES uses to encode the sequence of characters specified by instring.