to_base64

description

Syntax

VARCHAR to_base64(VARCHAR str)

Returns the result of Base64 encoding the input string

example

  1. mysql> select to_base64('1');
  2. +----------------+
  3. | to_base64('1') |
  4. +----------------+
  5. | MQ== |
  6. +----------------+
  7. mysql> select to_base64('234');
  8. +------------------+
  9. | to_base64('234') |
  10. +------------------+
  11. | MjM0 |
  12. +------------------+

keywords

  1. to_base64