Get started
Load & manage data
Work with data
Administration
Reference & resources
Updated Mar 24, 2023
Send us feedback
base64
Applies to: Databricks SQL Databricks Runtime
Converts expr to a base 64 string.
expr
base64(expr)
expr: A BINARY expression or a STRING which the function will interpret as BINARY.
A STRING.
> SELECT base64('Spark SQL'); U3BhcmsgU1FM
unbase64 function