A Primary Key Is a Field or Set of Fields with Values That Are Unique Throughout a Table. Values of the Key Can Be Used to Refer to Entire Records, Because...
A primary key is a field or set of fields with values that are unique throughout a table. Values of the key can be used to refer to entire records, because each record has a different value for the key. Each table can only have one primary key.
Can table have 2 primary keys?
A table can have only ONE primary key; and in the table, this primary key can consist of single or multiple columns (fields).
A table can only ever have a one primary key. It is not possible to create a table with two different primary keys. You can create a table with two different unique indexes (which are much like a primary key) but only one primary key can exist.
Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.