Skip to content

Converts the string argument to base-64 encoded form and returns the result as a character string. If the argument is not a string, it is converted to a string before conversion takes place. The result is NULL if the argument is NULL.

func.to_base64(<v>)
func.to_base64('abc')
┌───────────────────────┐
│ func.to_base64('abc') │
├───────────────────────┤
│ YWJj │
└───────────────────────┘
TO_BASE64(<v>)
ArgumentsDescription
<v>The value.

VARCHAR

SELECT TO_BASE64('abc');
┌──────────────────┐
│ TO_BASE64('abc') │
├──────────────────┤
│ YWJj │
└──────────────────┘