MySQL – Meaning of “PRIMARY KEY”, “UNIQUE KEY” and “KEY” when used together while creating a table
A key is just a normal index. A way over simplification is to think of it like a card catalog at a library. It points MySQL in the right direction. A unique key is also used for improved searching speed, but it has the constraint that there can be no duplicated items (there are no … Read more