Triggers
Triggers
Md. Arafatuzzaman
Student ID: 200140
WHAT IS TRIGGERS?
Trigger_name
-Is the name of the trigger.
Before | after
-before indicates that the trigger should be fired before the
trigger statement.
-after indicates that the trigger should be fired after the trigger
statement.
Delete | Insert | Update
- Delete indicates that the trigger statement deletes a row.
- Insert indicates that the trigger statement Insert a row.
- Update indicates that the trigger statement Update a row.
For each row
- If this used, the trigger is fired for each row that the triggering
statement affects. If it is omitted, the trigger works only once
per statement.
Presentation title 6
Example 1 Example 2
7
Example 3
• Triggers can be used to create audit trails and log changes made to the
Auditing and Logging database for tracking and accountability purposes.
Performance Overheads
Debugging Challenges.
Invisible Logic.
Data Inconsistencies.
Testing Challenges.
Limited Portability.
Security Concerns.
THANK YOU…