0 votes
in Sql by
What is the difference between UNIQUE and PRIMARY KEY constraints?

1 Answer

0 votes
by

The differences are as follows:

A table can have only one PRIMARY KEY whereas there can be any number of UNIQUE keys.

The primary key cannot contain Null values whereas the Unique key can contain Null values.

Related questions

0 votes
asked Nov 5, 2021 in Sql by rajeshsharma
0 votes
asked Jun 12, 2023 in Sql by Robin
0 votes
asked Nov 5, 2021 in Sql by rajeshsharma
...