12.8DELETING

Indicates if the trigger fired for a DELETE operation

Available inPSQL — DML triggers only

TypeBOOLEAN

Syntax

  |DELETING

Intended for use in multi-action triggers.

Example

  |if (deleting) then
  |begin
  |  insert into Removed_Cars (id, make, model, removed)
  |    values (old.id, old.make, old.model, current_timestamp);
  |end