Skip to main content
Scalar function
Returns NULL when either argument is NULL or bit_length is unsupported.

Syntax

Scalar

Arguments

Returns

  • Type: STRING
  • Possible values: A lowercase hexadecimal digest of 56, 64, 96 or 128 characters for 224, 256, 384 or 512 bits.
  • NULL behavior: Returns NULL when either argument is NULL or bit_length is unsupported.

Properties

Usage notes

  • The bit length may vary by row; it is not required to be a constant expression.

Examples

Value and NULL input

Choose a digest size

Last modified on October 15, 2026