What are the types of triggers ?
Answer Posted / sarat
There are 4 types of Triggers
# Row Triggers and Statement Triggers
# BEFORE and AFTER Triggers
# INSTEAD OF Triggers
# Triggers on System Events and User Events
A row trigger is fired each time the table is affected by
the triggering statement. A statement trigger is fired once
on behalf of the triggering statement.
BEFORE triggers run the trigger action before the triggering
statement is run. AFTER triggers run the trigger action
after the triggering statement is run.
INSTEAD OF triggers provide a transparent way of modifying
views that cannot be modified directly through DML
statements (INSERT, UPDATE, and DELETE).
| Is This Answer Correct ? | 14 Yes | 6 No |
Post New Answer View All Answers
how to escape special characters in sql statements? : Sql dba
What is the difference between clustered and non-clustered indexes?
What does plv msg allows you to do?
What is difference between table and view?
What is Histogram?
List out the acid properties and explain?
What is composite primary key in sql?
What are sql triggers used for?
Define commit, rollback and savepoint?
How do I count rows in sql query?
What is use of term?
What are the operators used in select statements?
Is there a 64 bit version of ssms?
Write an sql query to select all records from the table?
what is a view? : Sql dba