What's the best practice for primary keys in tables?

前端 未结 21 2413
别那么骄傲
别那么骄傲 2020-11-22 14:02

When designing tables, I\'ve developed a habit of having one column that is unique and that I make the primary key. This is achieved in three ways depending on requirements

21条回答
  •  Happy的楠姐
    2020-11-22 14:03

    If you really want to read through all of the back and forth on this age-old debate, do a search for "natural key" on Stack Overflow. You should get back pages of results.

提交回复
热议问题