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


Please Help Members By Posting Answers For Below Questions

Does sql*plus have a pl/sql engine?

786


How do you write an index?

735


What is sql*loader?

800


How does postgresql compare to oracle/db2/ms sql server/informix?

814


Which are the different character-manipulation functions in sql?

748


What is the difference between sql and mysql?

809


What are sql queries used for?

798


How can you know that statistics should be updated?

834


what is the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba

801


What is the example of procedure?

708


What is a unique constraint?

838


What is the location of pre_defined_functions.

878


Explain the steps needed to create the scheduled job?

784


What is the main difference between sql and pl/sql?

796


Is t sql a programming language?

787