Pergunta de entrevista da empresa Frasers Group

What is the different between primary and unique key?

Resposta da entrevista

Sigiloso

3 de nov. de 2023

The main difference between a primary key vs unique key is that a primary key is a key that uniquely identifies each record in a table but cannot store NULL values. In contrast, a unique key prevents duplicate values in a column and can store NULL values