Skip to main content
Scalar function
Aliases: sha1 Returns NULL when an argument is NULL.

Syntax

Scalar

Arguments

Returns

  • Type: STRING
  • Possible values: A 40-character lowercase hexadecimal digest.
  • NULL behavior: Returns NULL when an argument is NULL.

Properties

Usage notes

  • An empty string hashes to da39a3ee5e6b4b0d3255bfef95601890afd80709.

Examples

Value and NULL input

Hash empty text

Last modified on October 15, 2026