首先使用管理员运行命令:

create extension "uuid-ossp"

 执行成功:

PostgreSQL 生成uuid

 

uuid_generate_v4() 或 uuid_generate_v1()

PostgreSQL 生成uuid

 

在表字段添加uuid:

PostgreSQL 生成uuid

 

相关文章:

  • 2022-12-23
  • 2021-05-16
  • 2022-12-23
  • 2022-02-08
  • 2021-09-30
  • 2022-01-04
  • 2021-06-10
猜你喜欢
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
相关资源
相似解决方案