ClickHouse/tests/queries/0_stateless/02293_hashid.sql
2022-06-01 12:41:36 +00:00

8 lines
270 B
SQL

SET allow_experimental_hash_functions = 1;
select number, hashid(number) from system.numbers limit 5;
select number, hashid(number, 's3cr3t', 16, 'abcdefghijklmnop') from system.numbers limit 5;
select hashid(1234567890123456, 's3cr3t');
SELECT hashid(1, hashid(2));