base64 function

Converts expr to a base 64 string.

Syntax

base64(expr)

Arguments

  • expr: A BINARY expression or a STRING which the function will interpret as BINARY.

Returns

A STRING.

Examples

> SELECT base64('Spark SQL');
 U3BhcmsgU1FM