uuid_extract_version
Extract a version for the given UUID.
Try an expression
In Formula, enter the expression and set Output type to BIGINT.
Expression
uuid_extract_version('01965bfd-2b56-7a0a-9c2f-49a449a84527'::UUID)Result
7The expression returns UINTEGER. Formula stores it as BIGINT in this example. To use your own data, replace the example values with column names. Keep format strings and other options as written.
Arguments and types
uuid_extract_version(uuid)- uuid
- UUID
Supported signatures (1)
uuid_extract_version(uuid: UUID) → UINTEGERThe result type can depend on the input types. See DuckDB for the full argument rules.
Things to know
If the first argument is missing, the result is NULL.
Function metadata from DuckDB, used under the MIT license.