What is a trigger ?

Answer Posted / madhuri

Triggers are basically PL/SQL procedures that are associated
with tables, and are fired whenever a certain modification
(event) occurs. The modification statements may include
INSERT, UPDATE, and DELETE.

The general structure of triggers is:
CREATE [OR REPLACE]TRIGGER trigger_name
BEFORE/AFTER
INSERT/UPDATE/DELETE ON tablename
[FOR EACH ROW [WHEN (condition)]]
BEGIN
...
END;

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why primary key is required?

723


What is a stored procedure in sql with example?

789


What is the life of an sql statement?

723


What is mdf ldf and ndf?

746


Define a temp table?

755






What do you think about pl/sql?

701


How to display Row Number with Records in Oracle SQL Plus?

771


What are sql constraints?

788


What is delimiter sql?

705


What view means?

735


How to select 10 records from a table?

842


Can triggers stop a dml statement from executing on a table?

806


What is normalization sql?

724


how can you create an empty table from an existing table? : Sql dba

858


Explain the difference in execution of triggers and stored procedures?

749