Execute the statement generated by the following sql to
1
delete all foreign key constraints
select 'alter table '||table_name||' drop constraint '||constraint_name||';' from user_constraints where constraint_type='R'
2
Disable all foreign key constraints
select 'alter table '||table_name||' disable constraint '||constraint_name||';' from user_constraints where constraint_type='R' 3Enable
all
foreign key constraints
select 'alter table '||table_name||' enable constraint ' ||constraint_name||';' from user_constraints where constraint_type='R'
oracle delete (all) constraints disable (all) constraints enable (all) constraints
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326753846&siteId=291194637
Recommended
Ranking