Database Design and the use of non-numeric Primary Keys
问题 I'm currently in the process of designing the database tables for a customer & website management application. My question is in regards to the use of primary keys as functional parts of a table (and not assigning "ID" numbers to every table just because). For example, here are four related tables from the database so far, one of which uses the traditional primary key number, the others which use unique names as the primary key: -- -- website -- CREATE TABLE IF NOT EXISTS `website` ( `name`