Skip to contents
  • sha256(value = VARCHAR): Returns a VARCHAR with the SHA-256 hash of the value.

  • sha256(blob = BLOB): Returns a VARCHAR with the SHA-256 hash of the blob.

Usage

sha256(value)

Arguments

value

VARCHAR

Value

VARCHAR

Overloads

  • sha256(value = VARCHAR)

  • sha256(blob = BLOB)

SQL examples

sha256('🦆')
sha256('\xAA\xBB'::BLOB)