XXHASH_32
xxhash_32
description
Syntax
INT XXHASH_32(VARCHAR input, ...)
返回输入字符串的32位xxhash值。
注:在计算hash值时,更推荐使用xxhash_32
,而不是murmur_hash3_32
。
example
mysql> select xxhash_32(NULL);
+-----------------+
| xxhash_32(NULL) |
+-----------------+
| NULL |
+-----------------+
mysql> select xxhash_32("hello");
+--------------------+
| xxhash_32('hello') |
+--------------------+
| -83855367 |
+--------------------+
mysql> select xxhash_32("hello", "world");
+-----------------------------+
| xxhash_32('hello', 'world') |
+-----------------------------+
| -920844969 |
+-----------------------------+
keywords
HASH_32,HASH