Should I have a dedicated primary key field?

后端 未结 11 1687
温柔的废话
温柔的废话 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:40

    The primary key must be unique for every row. The auto_increment Integer is very good idea, and if you don't have other ideas about populating the primary key then this is the best way.

提交回复
热议问题