Should I have a dedicated primary key field?

后端 未结 11 1525
温柔的废话
温柔的废话 2020-11-30 10:05

I\'m designing a small SQL database to be used by a web application.

Let\'s say a particular table has a Name field for which no two rows will be allowed to have the

11条回答
  •  有刺的猬
    2020-11-30 10:47

    What you are describing is called a surrogate key. See the Wikipedia article for the long answer.

提交回复
热议问题