引用:http://space.itpub.net/10710960/viewspace-610982
首先利用select * from dba_constraints where table_name = 'TABLE_NAME' and constaint_Type = 'R' 查出表引用的约束.
得到对应的constaint_name。也就是该表引用的约束名称。
然后停止掉约束
alter table table_name disable constraint c_name; --注意c_name没有加引号!
然后进行删除记录操作
delete XXX
where XXXX
然后重新恢复约束
alter table ttp enable constraint c_name;