Scalar function
Aliases: base64
Returns NULL for NULL input.
Syntax
Scalar
Arguments
Returns
- Type: STRING
- Possible values: Padded Base64 text.
- NULL behavior: Returns NULL for NULL input.
Properties
Usage notes
- Encoding inserts a CRLF line break every 76 characters. Decoding removes CR and LF characters.
Examples
Typical behavior
Encode zero and high-byte values
Limitations
- Padding and line-break handling can differ for some STRING column representations. Do not rely on identical padding or CR/LF formatting across all input sources.
Last modified on October 15, 2026