SQL-TriggerTypes-Page23
👉Types of triggers
✅Row Triggers:
A row trigger is fired once for each row that is affected.
If the triggering statement affects no rows, the trigger is not executed at all.
✅Statement Triggers:
A statement trigger is fired once, independent of the number of rows the triggering statement affects.
✅Before Triggers:
Before Trigger execute the trigger action before executing the triggering statement.
✅After Triggers:
After Trigger executes the trigger action after executing the triggering statement.
Before triggers are used when the triggering action should determine whether or not the triggering statement should be allowed to complete.
After triggers are used when the triggering statement should be complete before executing the trigger action.
Comments
Post a Comment