mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 11:52:27 +00:00
9 lines
614 B
SQL
9 lines
614 B
SQL
SELECT toUInt128(toUUID('00000000-0000-0000-0000-000000000000'));
|
|
SELECT toUInt128(toUUID('f82aef31-279e-431f-8b00-2899ad387aea'));
|
|
SELECT toUInt128(toUUID('ffffffff-ffff-ffff-ffff-ffffffffffff'));
|
|
SELECT toUInt64(toUUID('00000000-0000-0000-0000-000000000000')); -- { serverError NOT_IMPLEMENTED }
|
|
SELECT toInt128(toUUID('00000000-0000-0000-0000-000000000000')); -- { serverError NOT_IMPLEMENTED }
|
|
SELECT cast(toUUID('f82aef31-279e-431f-8b00-2899ad387aea'), 'UInt128');
|
|
select accurateCast(toUUID('f82aef31-279e-431f-8b00-2899ad387aea'), 'UInt128');
|
|
select toUUID('f82aef31-279e-431f-8b00-2899ad387aea')::UInt128;
|