Do link tables need a meaningless primary key field?

前端 未结 12 1538
你的背包
你的背包 2020-12-08 14:05

I am working on a couple of link tables and I got to thinking (Danger Will Robinson, Danger) what are the possible structures of a link table and what are their pro\'s and c

12条回答
  •  余生分开走
    2020-12-08 14:43

    I have used composite key to prevent duplicate entry and let the database handle the exception. With a single key, you are rely on the front-end application to check the database for duplicate before adding a new record.

提交回复
热议问题