How many types of database triggers can be specified on a
table ? What are they ?
Answer Posted / nilesh
There are 2 types of triggers as per the execution goes
they are ROW LEVEL and STATEMENT LEVEL TRIGGERS
Then as per action triggers can be executed for three
actions as INSERT, UPDATE and DELETE
and trigger can also be executed before the action or after
the action . So with this we can have 12 diffrent triggers
they are: (6 Row level, 6 statement level)
ROW LEVEL
AFTER INSERT , BEFORE INSERT (2 Nos.)
AFTER UPDATE , BEFORE UPDATE (2 Nos.)
AFTER DELETE , BEFORE DELETE (2 Nos.)
STATEMENT LEVEL
AFTER INSERT , BEFORE INSERT (2 Nos.)
AFTER UPDATE , BEFORE UPDATE (2 Nos.)
AFTER DELETE , BEFORE DELETE (2 Nos.)
| Is This Answer Correct ? | 17 Yes | 4 No |
Post New Answer View All Answers
How does left join work in sql?
Do prepared statements prevent sql injection?
How do I make my sql query run faster?
what is denormalization. : Sql dba
List out the acid properties and explain?
How many types of indexes are there in sql?
Explain the purpose of %type and %rowtype data types?
What's the procedure?
Why do we create views in sql?
What is clustered and nonclustered index in sql?
How do you use join?
Can you join a table to itself?
Explain how exception handling is done in advance pl/sql?
What is implicit cursor in pl sql?
what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba