码迷,mamicode.com
首页 > 数据库 > 详细

oracle暂停启约束

时间:2016-09-14 10:54:39      阅读:146      评论:0      收藏:0      [点我收藏+]

标签:

暂停约束

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语句

oracle暂停启约束

标签:

原文地址:http://www.cnblogs.com/junhuang/p/5870997.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!