Creating tables/Deleting tables/Altering tables/Column and table constraints

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/5

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.

6 Terms

1
New cards

Adding/Dropping constraints

Constraints are added and dropped with the ALTER TABLE TableName followed by ADD, DROP, or CHANGE clause values

2
New cards

Constraint

A rule that governs allowable values in a database. Constraints are based on    relational and business rules and are implemented with special keywords in a  CREATED  TABLE statement. The database automatically rejects insert, update, and delete statement that violate a constraint

3
New cards

ALTER table

Adds, Deletes, or Modifies columns on an existing table

4
New cards

CREATE table

Creates a new table by specifying the table name, column names, and column data types. 
Example data types: INT/INTEGER, VARCHAR(N), DATE, and DECIMALS

5
New cards

DROP Table

Deletes a table, along with all the table's rows, from a database

6
New cards

Referential integrity

Every foreign key value must match an existing primary key value or be NULL