Unit 6 Flashcards

1
Q

a procedural SQL code that is automatically invoked by the RDBMS upon the occurrence of a given data manipulation event

A

Trigger

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

To delete or remove a trigger

A

DROP TRIGGER

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

A —— is invoked before or after a data row is inserted, updated, or deleted.

A

trigger

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

true or false: can a database table may have one or more triggers.

A

true

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

replaces the existing line ender (;) with the provided symbol. Used for END statement.

A

DELIMITER

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

is used if we want to execute the trigger before changes are made to the table. Meaning it will be executed regardless of a successful operation.

A

BEFORE

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

is used if we want to execute the trigger before changes are made to the table.

A

AFTER

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

trigger is used for insert operation

A

INSERT

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

trigger is used for update operation

A

UPDATE

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

trigger is used for delete operation

A

DELETE

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

indicates that the trigger will be in effect for all the row changes made inside the table

A

FOR EACH ROW

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

enable you to access columns in the rows affected by a trigger.

A

the OLD and NEW keywords

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

2 types of triggers

A
  • Data Manipulation Language (DML) trigger
  • Data Definition Language (DDL) trigger
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

-Executes when INSERT, UPDATE, and DELETE commands modify data in a table or view

A

Data Manipulation Language (DML) trigger

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

-Executes in response to a DDL statement that is often used to make database schema changes. Examples include the CREATE, ALTER, and DROP statements.

A

Data Definition Language (DDL) trigger

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