TO_BASE64

2023-12-25 08:49:42  Updated

Syntax

TO_BASE64(str)

Purpose

TO_BASE64() converts a string parameter into a Base64-encoded string. You can call the FROM_BASE64() function to decode a Base64-encoded string. For more information, see FROM_BASE64().

Examples

obclient> SELECT TO_BASE64('OB');
+-----------------+
| TO_BASE64('OB')
+-----------------+
| T0I=            |
+-----------------+
1 row in set

Contact Us