SelectDB Cloud
SQL 手册
函数
hash-functions
murmur_hash3_32

murmur_hash3_32

Description

Syntax

INT MURMUR_HASH3_32(VARCHAR input, ...)

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

example

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 |
+-----------------------------------+

keywords

MURMUR_HASH3_32,HASH
© 2023 北京飞轮数据科技有限公司 京ICP备2022004029号 | Apache、Apache Doris 以及相关开源项目名称均为 Apache 基金会商标