CONTRAINTS Flashcards

1
Q

Ensures that a column cannot have a NULL value

A

NOT NULL

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

Ensures that all values in a column are different

A

UNIQUE

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

A combination of aNOT NULLandUNIQUE. Uniquely identifies each row in a table

A

PRIMARY KEY

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

Prevents actions that would destroy links between tables

A

FOREIGN KEY

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

Ensures that the values in a column satisfies a specific condition

A

CHECK

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

Sets a _ value for a column if no value is specified

A

DEFAULT

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

Used to create and retrieve data from the database very quickly

A

CREATE INDEX

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