DEV Community

udomsak
udomsak

Posted on

1

NOTE-What is Sequence use in Postgresql

A sequence is a special kind of database object designed for generating unique numeric identifiers. It is typically used to generate artificial primary keys. Sequences are similar, but not identical, to the AUTO_INCREMENT concept in MySQL.

Thai

Sequence คือ Database object ใน PostgreSQL ปกติใช้ในการ generate key ( ใช้สำหรับ primary keys ) Sequence จะว่าไปก็คล้ายๆ กับ Auto-increment ใน MySQL.

หมดปัญหาไปเรื่อง Key ชนกัน เพราะ Sequence ออกแบบมาเพื่อการนี้อยู่แล้ว

Link : http://www.neilconway.org/docs/sequences/

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay