gen_random_uuid
Return a random UUID v4, such as 7e7ea35f-f813-46ce-ac7b-12658c021bcb.
Also available as uuid.
Try an expression
In Formula, enter the expression and set Output type to VARCHAR.
Expression
gen_random_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
gen_random_uuid()Supported signatures (1)
gen_random_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.