uuid
Return a random UUID v4, such as 7e7ea35f-f813-46ce-ac7b-12658c021bcb.
Also available as gen_random_uuid.
Try an expression
In Formula, enter the expression and set Output type to VARCHAR.
Expression
uuid()Expected behavior
A newly generated version 4 UUID.The expression returns UUID. Formula stores it as VARCHAR in this example. Its value varies between executions; the example checks its behavior rather than a fixed value.
Arguments and types
uuid()Supported signatures (1)
uuid() → UUIDThe result type can depend on the input types. See DuckDB for the full argument rules.
Function metadata from DuckDB, used under the MIT license.