HASH_MD5

Purpose

This function computes a hash value by using the MD5 algorithm (128 Bit).

Syntax

hash_md5::=

Hash MD5

Usage Notes

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

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

Example

SELECT HASH_MD5('abc');