oracle暂停启约束

暂停约束

select 'alter table '||table_name||' disable constraint '||constraint_name||';' from user_constraints where constraint_type='R';

启用约束
select 'alter table '||table_name||' enable constraint '||constraint_name||';' from user_constraints where constraint_type='R';

 

 

执行所有查询出来的sql语句

posted @ 2016-09-14 10:39  三醉  阅读(472)  评论(0编辑  收藏  举报