Decodes a sequence of characters in a given encoding into a sequence of bits. The following encodings are supported:
- Base64M (MIME)
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.
This statement is a Teradata extension to the ANSI SQL:2011 standard.
[TD_SYSFNLIB.] TO_BYTES ( instring, in_encoding )
- Name of the database where the function is located.
- The string value, that is, sequence of characters to be decoded.
- The encoding TO_BYTES uses to return the sequence of characters specified by instring.