Skip to content
Blog

UUID functions

UUID functions are used to create Universally Unique Identifiers (UUIDs).

FunctionDescriptionExampleResult
UUID(string)creates a UUID object from a stringUUID('{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}')a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11
gen_random_uuid()creates a random UUID objectgen_random_uuid()a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 (or similar)