HASHTYPE_MD5
Purpose
This function computes a hash value by using the MD5 algorithm (128 Bit).
Syntax
hashtype_md5::=
Usage Notes
- Return values have data type
HASHTYPE(16 byte). - The data types of the input parameters are significant. That is why
HASHTYPE_MD5(123)is different toHASHTYPE_MD5('123'). - Multiple input expressions are concatenated (in their internal byte representation) before the hash value is computed.
- The function returns
NULLif all input expressions areNULL.
Generally, HASHTYPE_MD5(c1,c2) is not similar to HASHTYPE_MD5(c1||c2).
Example
SELECT HASHTYPE_MD5('abc');