sql - When to use an auto-incremented primary key and when not to? -
I'm trying to figure out "best practices" to determine whether an auto-indicating integer To add a primary key in a table.
Assuming that I have data about chemical elements, the atomic number of each element is unique and will never change. So instead of using an automatic incremental integer for each column, it would probably be more intelligent to use the atomic number right, right?
If I have a table of books, will it be right? Should I use ISBN or an auto-indicating integer for primary key? Or a host of employees of each person with SSN?
There are already questions addressed on stack overflow which can help you with your questions
See the word you are looking for
Hope this will be helpful.
Comments
Post a Comment