How many types of database triggers can be specified on a
table ? What are they ?

Answers were Sorted based on User's Feedback



How many types of database triggers can be specified on a table ? What are they ?..

Answer / 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

How many types of database triggers can be specified on a table ? What are they ?..

Answer / biswajit biswal

We can specified 28 Database triggers on a single table.

Before Row level insert
After Statement level update
Delete
insert or update
update or delete
insert or delete
insert or update or delete

2*2*7=28

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More SQL PLSQL Interview Questions

Give the structure of the function ?

2 Answers  


Types of indexes. What is the default key created when a primary key is created in a table ?

5 Answers   TCS,


What is sqlite format?

0 Answers  


What is the limitation on the block size of pl/sql?

0 Answers  


What are the types of keys?

0 Answers  






What is an exception in PL/SQL? What are the two types of exceptions?

0 Answers  


what is self-join? : Sql dba

0 Answers  


How do you determine the current isolation level? : Transact sql

0 Answers  


What is a unique key?

0 Answers  


What is java sql driver?

0 Answers  


Find out the 3rd highest salary?

51 Answers   BirlaSoft, DAC, Silvia Infotech, Sutra Infotech,


how to install mysql? : Sql dba

0 Answers  


Categories