Constraints Flashcards

1
Q

Cannot leave this column empty

A

NOT NULL

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

Cannot have more than one of this in a column

A

UNIQUE

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

Will be the presented value if left blank

A

DEFAULT ‘default_value’

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

Automatically add a value one higher than the last for new rows

A

key_id DATA_TYPE AUTO_INCREMENT

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