Native primary key or auto generated one?

后端 未结 6 1433
无人共我
无人共我 2020-12-19 11:38

As a rule is it better to use native primary keys (ie existing columns or combination of columns) or set your primary key to an auto generating row of integers?

6条回答
  •  情深已故
    2020-12-19 12:03

    This is a pretty common topic.

    • How do you like your primary keys?
    • What’s the best practice for Primary Keys in tables?
    • Which format of primary key would you use in this situation.
    • Surrogate Vs. Natural/Business Keys
    • Should I have a dedicated primary key field?

提交回复
热议问题