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

前端 未结 21 2405
别那么骄傲
别那么骄傲 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条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-22 14:26

    I suspect Steven A. Lowe's rolled up newspaper therapy is required for the designer of the original data structure.

    As an aside, GUIDs as a primary key can be a performance hog. I wouldn't recommend it.

提交回复
热议问题