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;
/
解除oracle数据库中所有外键约束SQL语句
最新推荐文章于 2021-11-16 21:05:42 发布