TO_BASE64()

Overview

Returns a base-64 encoded representation of a string.

USAGE

TO_BASE64(string)

Argument Name

Description

string

The string that is to be encoded

DETAILS

TO_BASE64() is a string function that returns a base-64 encoded string of the input string.

A NULL is returned if the argument is NULL.

For the opposite conversion, see FROM_BASE64().

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

SELECT TO_BASE64('123');
+------------------+
| TO_BASE64('123') |
+------------------+
| MTIz             |
+------------------+
SELECT FROM_BASE64(TO_BASE64('mariadb'));
+-----------------------------------+
| FROM_BASE64(TO_BASE64('mariadb')) |
+-----------------------------------+
| mariadb                           |
+-----------------------------------+

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.09

  • Present starting in MariaDB Xpand 23.09.1.

6.1

  • Present starting in MariaDB Xpand 6.1.0.

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.1

  • Present starting in MariaDB Xpand 6.1.0.

EXTERNAL REFERENCES