begin
for item in (select * from user_constraints a where a.constraint_type = 'R') loop
execute immediate 'alter table ' || item.table_name || ' disable constraint ' || item.constraint_name;
end loop;
end;
/
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12272958/viewspace-684283/
,如需转载,请注明出处,否则将追究法律责任。