1.9 Primary Keys Flashcards

1
Q

primary key

A

A primary key is a column, or group of columns, used to identify a row.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

simple primary key

A

A simple primary key consists of a single column.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

composite primary key

A

A composite primary key consists of multiple columns.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Minimal

A

Minimal. All primary key columns are necessary for uniqueness. When any column is removed, the resulting simple or composite column is no longer unique.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

PRIMARY KEY

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

auto-increment column

A

An auto-increment column is a numeric column that is assigned an automatically incrementing value when a new row is inserted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

AUTO_INCREMENT

A

Keyword in the create table statement that defines an auto-increment column. ColumnName INT AUTO_INCREMENT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly