Skip to main content
Version: current [25.x]

Categories: String, Binary

BASE64

Returns the Base64 encoding of a binary string.

Syntax

BASE64(expression varbinary) → varchar

  • expression: The string to encode.

Examples

BASE64 example
SELECT BASE64('Dremio')
-- RHJlbWlv