- database_name
- Specifies an optional qualifier for trigger_name.
- trigger_name
- Specifies the name of the trigger to be created or replaced.
- ENABLED
- Specifies the keyword that enables a trigger to execute.
- DISABLED
- Specifies the keyword that disables a trigger from executing.
- BEFORE
- Specifies that the trigger performs before the triggering event, or triggering statement, is executed.
- AFTER
- Specifies that the trigger performs after the triggering event.
- CURRENT VALIDTIME
- Specifies that the trigger fires when the triggering event is current in the valid-time dimension.
- VALIDTIME
- Specifies that the trigger fires when the triggering event is sequenced in the valid-time dimension.
- SEQUENCED VALIDTIME
- NONSEQUENCED VALIDTIME
- Specifies that the trigger fires when the triggering event is nonsequenced in the valid-time dimension.
- NONTEMPORAL
- Specifies that the trigger fires when the triggering event is nontemporal in the transaction-time dimension. The triggering statement must specify the NONTEMPORAL prefix.
- INSERT
- Specifies that the triggering event for this trigger is one of the following:
- INSERT
- INSERT SELECT
- Atomic Upsert
- MERGE
- DELETE
- Specifies that the triggering event for this trigger is a DELETE.
- UPDATE
- Specifies that the triggering statement for this trigger is one of the following:
- UPDATE
- Atomic Upsert
- MERGE
- ON [database_name.]table_name
- Specifies the subject table with which this trigger is associated.
- ORDER integer
- Specifies the order of trigger execution within a request when multiple triggers are defined on a subject table.
- REFERENCING
- Specifies a transition table that the WHEN condition and the triggered actions of a trigger can reference. The clause is optional and has no default.
- FOR EACH ROW
- Specifies keywords specifying that the trigger is to fire for each qualified row. That is, each row that evaluates to TRUE for any WHEN condition specified for the trigger.
- FOR EACH STATEMENT
- Specifies keywords specifying that the trigger is to fire once per processed SQL statement in the request whenever a WHEN condition for the trigger evaluates to TRUE.
- WHEN (search_condition)
- Specifies a search condition clause to refine the conditions that fire the trigger.
- SQL_procedure_statement
- Specifies one or more valid triggered action statements.
- BEGIN ATOMIC
- Specifies a keyword introducing multiple triggered action statements.