Deciding between an artificial primary key and a natural key for a Products table

前端 未结 10 1297
粉色の甜心
粉色の甜心 2020-11-29 02:22

Basically, I will need to combine product data from multiple vendors into a single database (it\'s more complex than that, of course) which has several tables that will need

10条回答
  •  执念已碎
    2020-11-29 02:58

    Since you're dealing with data from multiple vendors outside of your control, I would use a surrogate key. You don't want to have to rearchitect your database design one day when one of them happens to send you a duplicate.

提交回复
热议问题