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
What is sql keyword?
What is the syntax and use of the coalesce function?
What are the three pl sql block types?
What are all different types of collation sensitivity?
What is duration in sql profiler trace?
how can we destroy the session, how can we unset the variable of a session? : Sql dba
How does index help in query performance?
How are functions and procedures called in PL/SQL?
Which column in the user.triggers data dictionary view shows that the trigger is a pl/sql trigger?
What are types of exception?
How do I install sql?
Can we use threading in pl/sql?
What is primary key sql?
how to analyze tables with 'mysqlcheck'? : Sql dba
What is the difference between the sql*loader and import utilities? : aql loader