Correlated Table Action

Use the Correlated Trigger Action clause to define the SQL statements that are executed as the trigger action when a triggering event activates a trigger on a table.

Read syntax diagramSkip visual syntax diagram
Correlated Table Action

|--+----------------------------------+------------------------->
   |                              (1) |   
   '-BEFORE--| Triggered-Action |-----'   

                                      (1)   
>--FOR EACH ROW--| Triggered-Action |--------------------------->

>--+---------------------------------+--------------------------|
   |                             (1) |   
   '-AFTER--| Triggered-Action |-----'   

Notes:
  1. See Triggered Action on a Table

If the CREATE TRIGGER statement contains an INSERT REFERENCING clause, a DELETE REFERENCING clause, an UPDATE REFERENCING clause, or a SELECT REFERENCING clause, you must include a FOR EACH ROW triggered-action list in the Action clause. You can also include BEFORE and AFTER triggered-action lists, but they are optional.

For information on the BEFORE, FOR EACH ROW, and AFTER triggered-action lists, see Action Clause


Copyright© 2021 HCL Technologies Limited