2.12f

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

What is a column constraint in a CREATE TABLE statement?

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

2
New cards

What does the NOT NULL constraint do?

It prohibits null values in a column.

3
New cards

What is the purpose of a DEFAULT constraint?

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

4
New cards

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.

5
New cards

What does the UNIQUE constraint do?

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

6
New cards

What is a CHECK constraint?

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

7
New cards

How is a constraint named in a table?

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

8
New cards

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.

9
New cards

What is the purpose of the ALTER TABLE statement?

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

10
New cards

Can CHECK column constraints be named?

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