A single string columned table which is also the PK OR create an integer auto increment column as its PK and then set the string column as an UNIQUE field?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That depends on what you want to achieve.
If you want a stable database schema which you can change later, always add ID columns and use those as primary keys.
If maintenance is not necessary or not wanted, you can use the strings as keys and waste countless hours later when one of those “immutable” keys must be changed to update it everywhere.