64squares interview question

What is Unique key in sql?

Interview Answer

Anonymous

29 Jan 2025

A unique key in SQL is the set of fields or columns of a table that helps us uniquely identify records. The unique key guarantees the uniqueness of the columns in the database. It is similar to the primary key but can accept a null value.