MD5_NUMBER_LOWER64

functionsupportedCore SQL functions

docs.snowflake.com ↗

String & binary functions

Calculates the 128-bit MD5 message digest, interprets it as a signed 128-bit big endian number, and returns the lower 64 bits of the number as an unsigned integer. This representation is useful for maximally efficient storage and comparison of MD5 digests.

Syntax

MD5_NUMBER_LOWER64(<msg>)

Parameters

NameRequiredDescription
msgrequiredA string expression, the message to be hashed. The input is limited by the maximum size of the VARCHAR data type, 134217728 bytes (128 MB). For more information, see String & binary data types.

Returns

A 64 bit unsigned integer that represents the lower 64 bits of the message digest.

Usage notes

See also

Referenced by