Oracle Database primary foreign key cascade delete records

/ * * 
 * 1. the ACTION NO: means that when the reference data is deleted columns in the primary table, if the child table column contains the reference value, the operation is performed is prohibited. 
 * 
 * 2. the SET NULL: means that when the reference data is deleted columns primary table, the value corresponding to the child table referenced column is NULL value. SETNULL there is a premise that is a foreign key reference columns must be set to NULL. 
 * 
 * 3. CASCADE means that when data is deleted in the primary table when the referenced columns, cascade delete the corresponding data in the child table row. 
 * /

 

Guess you like

Origin www.cnblogs.com/tanjiyuan/p/11703837.html