uuid_version()
URL: llms-txt#uuid_version()
Contents:
- Samples
- Arguments
Extract the version number from a UUID object:
Returns something like:
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
uuid | UUID | - | ✔ | The UUID object to extract the version number from |
===== PAGE: https://docs.tigerdata.com/api/uuid-functions/generate_uuidv7/ =====
Examples:
Example 1 (sql):
sql
postgres=# SELECT uuid_version('019913ce-f124-7835-96c7-a2df691caa98');Example 2 (terminaloutput):
terminaloutput
uuid_version
--------------
7