This document discusses database keys including primary keys, secondary keys, composite keys, and foreign keys. A primary key uniquely identifies each record in a table and cannot contain null values. A secondary key can contain duplicate values and null values but is indexed to improve performance. A composite key combines two or more columns to uniquely identify each record in a table. A foreign key is a field in one table that refers to the primary key in another table, and is used to link information between tables.
This document discusses database keys including primary keys, secondary keys, composite keys, and foreign keys. A primary key uniquely identifies each record in a table and cannot contain null values. A secondary key can contain duplicate values and null values but is indexed to improve performance. A composite key combines two or more columns to uniquely identify each record in a table. A foreign key is a field in one table that refers to the primary key in another table, and is used to link information between tables.
This document discusses database keys including primary keys, secondary keys, composite keys, and foreign keys. A primary key uniquely identifies each record in a table and cannot contain null values. A secondary key can contain duplicate values and null values but is indexed to improve performance. A composite key combines two or more columns to uniquely identify each record in a table. A foreign key is a field in one table that refers to the primary key in another table, and is used to link information between tables.