DBMS L7

0.0(0)
studied byStudied by 3 people
0.0(0)
full-widthCall with Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

flashcard set

Earn XP

Description and Tags

Managing Schema Objects

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

20 Terms

1
New cards

ALTER TABLE Statement

Use this statement to

  • Add a new column

  • Modify an existing column

  • Define a default value for the new column

  • Drop a column

  • Rename a column

  • Change table to read-only status

2
New cards

Adding a Column

knowt flashcard image
3
New cards

Modifying a Column

  • You can change a column’s data type, size, and default value.

  • A change to the default value affects only subsequent insertions to the table.

<ul><li><p>You can change a column’s data type, size, and default value.</p></li><li><p>A change to the default value affects only subsequent insertions to the table.</p></li></ul><p></p>
4
New cards

Dropping a Column

knowt flashcard image
5
New cards

Deferring Constraint

Constraints can have the following attributes:

  • DEFERRABLE or NOT DEFERRABLE

  • INITIALLY DEFERRED or INITIALLY IMMEDIATE

6
New cards

INITIALLY DEFERRED

Waits to check the constraint until the transaction ends

7
New cards

INITIALLY IMMEDIATE

Checks the constraint at the end of the statement execution

8
New cards

Dropping a Constraint

knowt flashcard image
9
New cards

Disabling Constraints

  • Execute the DISABLE clause of the ALTER TABLE statement to deactivate an integrity constraint

  • Apply the CASCADE option to disable dependent integrity constraints.

<ul><li><p>Execute the DISABLE clause of the ALTER TABLE statement to deactivate an integrity constraint</p></li><li><p>Apply the CASCADE option to disable dependent integrity constraints.</p></li></ul><p></p>
10
New cards

Enabling Constraints

  • Activate an integrity constraint currently disabled in the table definition by using the ENABLE clause.

  • A UNIQUE index is automatically created if you enable a UNIQUE key or a PRIMARY KEY constraint

11
New cards

Cascading Constraints

  • is used along with the DROP COLUMN clause.

  • drops all referential integrity constraints that refer to the primary and unique keys defined on the dropped columns.

  • drops all multicolumn constraints defined on the dropped columns.

12
New cards

RENAME COLUMN

Use this clause of the ALTER TABLE statement to rename table columns.

13
New cards

RENAME CONSTRAINT

Use this clause of the ALTER TABLE statement to rename any existing constraint for a table.

14
New cards

READ ONLY

Put a table into read-only mode, which prevents DDL or DML changes during table maintenance

15
New cards

READ WRITE

Put the table back into read/write mode

16
New cards

DROP TABLE

  • Moves a table to the recycle bin

  • Removes the table and all its data entirely if the PURGE clause is specified

  • Invalidates dependent objects and removes object privileges on the table

17
New cards
<p>FLASHBACK TABLE Statement</p>

FLASHBACK TABLE Statement

  • Enables you to recover tables to a specified point in time with a single statement

  • Restores table data along with associated indexes, and constraints

18
New cards
<p>TRUNCATE Statement</p>

TRUNCATE Statement

Remove all rows from a table, leaving the table empty and the table structure intact

19
New cards
<p>COMMENT</p>

COMMENT

You can add comments to a table or column by using th statement

20
New cards

Explore top flashcards

DECA Marketing
Updated 1080d ago
flashcards Flashcards (409)
1.1
Updated 115d ago
flashcards Flashcards (29)
Criminal Law
Updated 490d ago
flashcards Flashcards (36)
unit 6 gradesavers
Updated 1045d ago
flashcards Flashcards (58)
Ecology
Updated 1039d ago
flashcards Flashcards (124)
DECA Marketing
Updated 1080d ago
flashcards Flashcards (409)
1.1
Updated 115d ago
flashcards Flashcards (29)
Criminal Law
Updated 490d ago
flashcards Flashcards (36)
unit 6 gradesavers
Updated 1045d ago
flashcards Flashcards (58)
Ecology
Updated 1039d ago
flashcards Flashcards (124)