I am trying to understand the index concept in SQL. It is clear to me why we use the index for columns but check these 2 variants of codes:
ALTER TABLE Titles ADD CONSTRAINT Titles_pri_key PRIMARY KEY (title_id);
and
ALTER TABLE Titles PRIMARY KEY (title_id);
I couldn't come up with an idea about why specifying "Titles_pri_key" would be a good idea.
Thanks in advance for all your answers.