1.打开 SQL Shell(psql)

postgresql 创建并使用uuid作为唯一主键

 

 2.输入你的数据库连接信息

 3.创建uuid扩展

 create extension "uuid-ossp":  安装 uuid_generate_v4() 扩展函数

 select uuid_generate_v4() : 检验函数

postgresql 创建并使用uuid作为唯一主键

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
  • 2021-06-22
  • 2021-10-26
  • 2022-12-23
  • 2021-09-27
  • 2021-06-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-16
  • 2021-10-13
  • 2021-12-27
  • 2020-12-29
  • 2022-12-23
相关资源
相似解决方案