PostgreSQL · Function
gen_random_uuid
gen_random_uuid() generates and returns a version 4 UUID using random data. It takes no parameters.
Last updated
Syntax
gen_random_uuid ( ) → uuidIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
uuidv4uuidv7uuid_extract_versionuuid_extract_timestampuuid-ossp