Skip to main content
Calculates the 128-bit checksum of multiple strings. The checksum is represented by a 32-character hexadecimal string. If only one string is passed in, the result is the same as that of md5. Compared to md5(), md5sum() accepts more parameters and therefore, is more efficient in calculating the checksum of multiple files.

Syntax

Parameters

expr: the string to calculate. It must be of the VARCHAR type.

Return value

Returns a checksum of the VARCHAR type.

Examples

Text