SQL Reference

Appendix J. Interaction of Triggers and Constraints

This appendix describes the interaction of triggers with referential constraints and check constraints that may result from an update operation. Figure 17 and the associated description are representative of the processing that is performed for an SQL statement that updates data in the database.

Figure 17. Processing an SQL statement with associated triggers and constraints

Processing an SQL statement with associated triggers and constraints

Figure 17 shows the general order of processing for an SQL statement that updates a table. It assumes a situation where the table includes before triggers, referential constraints, check constraints and after triggers that cascade. The following is a description of the boxes and other items found in Figure 17.


[ Top of Page | Previous Page | Next Page ]