学习笔记,转自:http://hsyd.iteye.com/blog/379728
?
执行以下sql生成的语句即可
删除所有外键约束?
- select?'alter?table?'||table_name||'?drop?constraint?'||constraint_name||';'?from?user_constraints?where?constraint_type='R'??
?禁用所有外键约束
- select?'alter?table?'||table_name||'?disable?constraint?'||constraint_name||';'?from?user_constraints?where?constraint_type='R'??
启用所有外键约束