1.9 Primary Keys Flashcards
primary key
A primary key is a column, or group of columns, used to identify a row.
simple primary key
A simple primary key consists of a single column.
composite primary key
A composite primary key consists of multiple columns.
Minimal
Minimal. All primary key columns are necessary for uniqueness. When any column is removed, the resulting simple or composite column is no longer unique.
PRIMARY KEY
The PRIMARY KEY constraint in a CREATE TABLE statement names the table’s primary key. The PRIMARY KEY constraint ensures that a column or group of columns is always unique and non-null.
auto-increment column
An auto-increment column is a numeric column that is assigned an automatically incrementing value when a new row is inserted.
AUTO_INCREMENT
Keyword in the create table statement that defines an auto-increment column. ColumnName INT AUTO_INCREMENT