Hi friends.....
What are triggers? How to invoke a trigger on demand?
Thanks....
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Jan 9, 2012, 10:52 PM
Triggers are special kind of stored procedures that get executed automatically when an INSERT, UPDATE or DELETE operation takes place on a table.
Triggers cannot be invoked on demand. They get triggered only when an associated action (INSERT, UPDATE and DELETE) happens on the table on which they are defined.
Triggers are generally used to implement business rules, auditing. Triggers can also be used to extend the referential integrity checks, but wherever possible, use constraints for this purpose, instead of triggers, as constraints are much faster
Thanks
Vikas MishraPosted Jan 10, 2012, 11:25 AM