A trigger is a set of actions that will be executed when a defined event occurs. The triggering events can be the following SQL statements:




Triggers are defined for a specific table and once defined, a trigger is automatically active. A table can have multiple triggers defined for it, and if multiple triggers are defined for a given table, the order of trigger activation is based on the trigger creation timestamp (the order in which the triggers were created). Trigger definitions are stored in the DB2 catalog tables.


    • One row for each trigger

    • TEXT column contains full text of CREATE TRIGGER


    • One row for each trigger package

    • TYPE column set to “T” to indicate a trigger package

Trigger Usage ...

Get DB2® Universal Database for OS/390® Version 7.1 Certification Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.