uuid_version()
Extract the version of a UUID
Since 2.23.0
Extract the version number from a UUID object:
Returns something like:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Extract the version of a UUID
SELECT uuid_version('019913ce-f124-7835-96c7-a2df691caa98');
uuid_version
--------------
7
SELECT uuid_version(
uuid = <uuid>
);
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
uuid | UUID | - | ✔ | The UUID object to extract the version number from |
| Column | Type | Description |
|---|---|---|
uuid_version | INTEGER | The version number extracted from the UUID object (e.g., 7 for UUIDv7). |