Pregunta de entrevista de Frasers Group

What is the different between primary and unique key?

Respuesta de la entrevista

Anónimo

3 nov 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