Page 1 of 1
What is TRIGGER in DB2?
Posted: Mon Jul 01, 2013 4:24 pm
by Prakash Jha
Hi,
I'm not sure what is a trigger in DB2 and where it is used?
Re: What is TRIGGER in DB2?
Posted: Mon Jul 01, 2013 10:34 pm
by Anuj Dhawan
A trigger is a set of instructions that are executed after a DB2 action, such as INSERT, UPDATE or DELETE, on a particular table. You would use the CREATE TRIGGER statement to build your trigger for a particular table.
Re: What is TRIGGER in DB2?
Posted: Fri Aug 23, 2013 2:10 pm
by Adyanath Ghosh
Trigger is a PL/SQL block that is executed on an event in the database. The event is related to a particular data manipulation of a table such as inserting, deleting or updating a row of a table or invoking a UDF ( User define function in DB2 )
Sometimes to keep a track of the changes in a table or to perform an automatical action or to perform an action depending on another action ( Dependency ) DB2 Developer use triggers.
Thanks,
Adyanath Ghosh
Re: What is TRIGGER in DB2?
Posted: Sun Aug 25, 2013 12:26 am
by Prakash Jha
Thank you Anuj.
Thanks Adyanath - but your pdf directs to an Oracle document?
Re: What is TRIGGER in DB2?
Posted: Sun Sep 01, 2013 11:22 am
by utkarsh
Prakash Jha wrote:Thanks Adyanath - but your pdf directs to an Oracle document?
Though the database is different but I think the concept is same...