/ Published in: SQL
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
SELECT 'ALTER TABLE '||TABLE_NAME||' DISABLE CONSTRAINTS '||CONSTRAINT_NAME||';' FROM user_constraints WHERE r_constraint_name = (SELECT constraint_name FROM user_constraints WHERE LOWER(TABLE_NAME) = 'parent_table' AND constraint_type = 'P') AND constraint_type = 'R' ;