Uncommon · Knowledge
Unique key
Minimal superkey in relational database management systems
In relational database management systems, a unique key is a candidate key. All the candidate keys of a relation can uniquely identify the records of the relation, but only one of them is used as the primary key of the relation.
From Wikipedia
In relational database management systems, a unique key is a candidate key. All the candidate keys of a relation can uniquely identify the records of the relation, but only one of them is used as the primary key of the relation. The remaining candidate keys are called unique keys because they can uniquely identify a record in a relation. Unique keys can consist of multiple columns. Unique keys are also called alternate keys. Unique keys are an alternative to the primary key of the relation. In SQL, the unique keys have a UNIQUE constraint assigned to them in order to prevent duplicates (a duplicate entry is not valid in a unique column). Alternate keys may be used like the primary key when doing a single-table select or when filtering in a where clause, but are not typically used to join multiple tables.
Text: Wikipédia, CC BY-SA 4.0. ·
Related cards
-
★★★★
SQL
Relational database language that allows to extract from data tables a series of records with selection, sorting and computation criteria, or to update, delete or add records
-
S★★
Select (SQL)
SQL statement that returns a result set of records from one or more tables
-
★★
Relation (database)
Concept in relational database theory
-
K★
Key size
Number of bits in a key used by a cryptographic algorithm
-
U★★
Update (SQL)
SQL statement
-
U★
Unified English Braille
Braille alphabet of English language