2.12f

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 9

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

10 Terms

1

What is a column constraint in a CREATE TABLE statement?

It appears in a separate clause and governs values in a single column.

New cards
2

What does the NOT NULL constraint do?

It prohibits null values in a column.

New cards
3

What is the purpose of a DEFAULT constraint?

It specifies a value that is inserted when a column is omitted from an INSERT statement.

New cards
4

What is a PRIMARY KEY constraint?

It is a constraint that uniquely identifies each record in a table and can be applied to a column or group of columns.

New cards
5

What does the UNIQUE constraint do?

It ensures that all values in a column are different from one another.

New cards
6

What is a CHECK constraint?

It is a table constraint that ensures that the specified condition is satisfied for values in specified columns.

New cards
7

How is a constraint named in a table?

Using the CONSTRAINT keyword followed by the constraint name in the declaration.

New cards
8

What happens when a foreign key constraint refers to a primary key of a table that is being dropped?

Dropping the table fails unless the foreign key constraint is removed first.

New cards
9

What is the purpose of the ALTER TABLE statement?

To add, drop, or change constraints in an existing table.

New cards
10

Can CHECK column constraints be named?

Yes, a CHECK column constraint can be named with a CONSTRAINT clause in the column declaration.

New cards
robot