When should I use a primary key or an index?
What are their differences and which is the best?
Every table should have a PRIMARY KEY.
PRIMARY KEY
Many types of queries are sped up by the judicious choice of an INDEX. It may be that the best index is the primary key. My point is that the query is the main factor in whether to use the PK for its index.