时间:2021-07-01 10:21:17 帮助过:53人阅读
1、查看禁用外键sql
select ‘alter table ‘||table_name||‘ disable constraint ‘||constraint_name||‘;‘ from user_constraints where constraint_type=‘R‘;2、查看启用外键sql
select ‘alter table ‘||table_name||‘ enable constraint ‘||constraint_name||‘;‘ from user_constraints where constraint_type=‘R‘;3、查看删除外键sql
select ‘alter table ‘||table_name||‘ drop constraint ‘||constraint_name||‘;‘ from user_constraints where constraint_type=‘R‘;oracle查看禁用/启用/删除外键约束sql
标签:ons div ora || name int alt 禁用 table