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 are sql*plus environment variables?
Can we commit in trigger?
What is a sql profiler?
Does truncate require commit?
how to dump a table to a file with 'mysqldump'? : Sql dba
Mention what is the function that is used to transfer a pl/sql table log to a database table?
How to run sql*plus commands in sql developer?
What is AUTH_ID and AUTH_USER in pl/sql ?
Why do we use sqlite?
Can a key be both primary and foreign?
What is bulk compiling in pl/sql.?
how to check myisam tables for errors? : Sql dba
What is normalization sql?
What is a left inner join?
How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?