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'; 

 

相关文章:

  • 2021-09-12
  • 2021-07-07
  • 2021-07-23
  • 2022-12-23
  • 2021-06-14
  • 2021-04-30
猜你喜欢
  • 2021-07-22
  • 2021-07-14
  • 2021-06-17
  • 2021-06-04
  • 2022-12-23
  • 2021-09-20
相关资源
相似解决方案