Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 882 Bytes

File metadata and controls

44 lines (32 loc) · 882 Bytes

murmur_hash3_32

功能

返回输入字符串的 32 位 murmur3 hash 值。

语法

MURMUR_HASH3_32(input, ...)

参数说明

input: 支持的数据类型为 VARCHAR。

返回值说明

返回值的数据类型为 INT。

示例

MySQL > select murmur_hash3_32(null);
+-----------------------+
| murmur_hash3_32(NULL) |
+-----------------------+
|                  NULL |
+-----------------------+

MySQL > select murmur_hash3_32("hello");
+--------------------------+
| murmur_hash3_32('hello') |
+--------------------------+
|               1321743225 |
+--------------------------+

MySQL > select murmur_hash3_32("hello", "world");
+-----------------------------------+
| murmur_hash3_32('hello', 'world') |
+-----------------------------------+
|                         984713481 |
+-----------------------------------+