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

前端 未结 10 1296
粉色の甜心
粉色の甜心 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:17

    I'd also go with an auto-increment primary key. The performance impact for having an alphanumeric primary key are there, though I don't dare name any numbers. However, if performance is important in your application, all the more reason to go with the autoincrement primary key column.

提交回复
热议问题