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

How do you get column names only for a table (sql server)?

671


what are the differences between binary and varbinary? : Sql dba

535


What is the starting oracle error number?

569


What are the different sql commands?

526


How can you fetch common records from two tables?

594






how can we destroy the session, how can we unset the variable of a session? : Sql dba

554


what is the difference between join and union? : Sql dba

554


How to select unique records from a table?

571


What is database white box testing and black box testing?

643


How do you create a unique index?

575


What is sqlcommand?

558


What is percent sign in sql?

725


Can 2 queries be executed simultaneously in a distributed database system?

649


how many triggers are allowed in mysql table? : Sql dba

561


What is difference between table and view?

531