Fedora 31

瘦欲@ 提交于 2020-02-27 13:37:07

系统安装扩展软件包

sudo dnf install postgresql12-contrib

数据库安装扩展

CREATE EXTENSION IF NOT EXISTS pgcrypto;

数据库使用函数生成UUID

select gen_random_uuid();

 

If you only need randomly-generated (version 4) UUIDs, consider using the gen_random_uuid() function from the pgcrypto module instead.

翻译:如果只需要随机生成的(版本4)UUID,请考虑改用pgcrypto模块中的gen_random_uuid()函数。 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!