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

前端 未结 10 1325
粉色の甜心
粉色の甜心 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 03:00

    I'd advice on having an autoincremented "meaningless" integer as primary key. Should someone come up with the idea of reorganizing product IDs, at least your DB won't get into trouble.

提交回复
热议问题