|
When do the Integrity Constraint Checks Take Place? | Database Tables | Complete CREATE TABLE Statement |
Execution of the UPDATE, INSERT or DELETE statements may cause simultaneous execution of triggers, integrity constrains checks and execution of active referential integrity actions. It's necessary to know the order of these actions.
Server may control the integrity constraints compliance either on the statement termination or on the transaction finish. The exact time of integrity constraint evaluation is set by the INITIALLY IMMEDIATE or INITIALLY DEFERRED clauses.
Execution of a statement is always like this:
This order of actions is executed for each record affected by the statement:
When do the Integrity Constraint Checks Take Place? | Database Tables | Complete CREATE TABLE Statement |