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' ;
select 'alter table ' || table_name || ' enable constraint ' || constraint_name ||';' from user_constraints where constraint_type='R' ;
本文提供了一种方法来批量禁用和重新启用数据库表上的引用约束,这对于进行大规模的数据操作或者维护工作非常有用。
2832

被折叠的 条评论
为什么被折叠?



