A database index is a data structure that speeds up data retrieval in a database table by letting the database jump directly to matching rows instead of scanning every row.
A primary key uniquely identifies each record in a table.
Many DBMSs automatically create an index to enforce a primary key.
Loading…