Skip to main content
Skip to main content

to_base64

to_base64​

description​

Syntax​

VARCHAR to_base64(VARCHAR str)

Returns the result of Base64 encoding the input string

example​

mysql> select to_base64('1');
+----------------+
| to_base64('1') |
+----------------+
| MQ== |
+----------------+

mysql> select to_base64('234');
+------------------+
| to_base64('234') |
+------------------+
| MjM0 |
+------------------+

keywords​

to_base64