anishtv
asked on
trigger
what is the use of trigger in oracle database. where exactly it is used which occassions.
Too many uses to enumerate. It's used wherever the occasion calls for it. Frequently it is used in conjunction with a sequence to generate an identity.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Another important thing about trigger is that it slows down DML because for every DML Oracle has to invoke and execute Trigger code.
ASKER
Thanks
There are system level and table level. There are also "instead of" triggers for DML on views.
The online documentation is the best place to start:
http://docs.oracle.com/database/121/LNPLS/triggers.htm#LNPLS020