SQL/postgresql

[postgresql] uuid 생성 함수

도미노& 2021. 8. 26. 11:46
select gen_random_uuid();

https://www.cybertec-postgresql.com/en/uuid-serial-or-identity-columns-for-postgresql-auto-generated-primary-keys/

 

Auto-generated primary keys: UUID, serial or identity column? - Cybertec

This article explores the old question what to use for autogenerated primary keys: UUID, serial or identity column? Recommendations are given!

www.cybertec-postgresql.com