HASHTYPE_SHA256

Purpose

This function computes a hash value by using the SHA256 algorithm (256 Bit).

Syntax

hashtype_sha256::=

HASHTYPE_SHA256

Usage Notes

  • Return values have data type HASHTYPE(32 byte).
  • The data types of the input parameters are significant. That is why HASHTYPE_SHA256(123) is different from HASHTYPE_SHA256('123').
  • Multiple input expressions are concatenated (in their internal byte representation) before the hash value is computed.
  • HASHTYPE_SHA256(c1,c2) is not similar to HASHTYPE_SHA256(c1||c2).

  • The function returns NULL if all input expressions are NULL.

Example

SELECT HASHTYPE_SHA256('abc');