For database related videos, please subscribe channel
/ @datagurunaval
What is the Difference between Primary Key and Unique Key - Database
Primary Key:-
A primary key constraint is a column or group of columns in a table that uniquely identifies every row in that table. The Primary key can't be a duplicate, meaning the same value can't appear more than once in the table.
Unique Key:-
A unique key is a group of one or more than one fields or columns of a table which uniquely identify database record.