摘要: 有时候删除某张表记录的时候,会报错外键约束不能删除。如果不了解表之间的关系,可以通过以下语句查询到外键是建在哪张表上的:select * from dba_constraints where constraint_name='xxx' and constraint_type = 'R';例如:执行delete from t_bme_task;时报错:ORA-02292: integrity constraint (CCSYS.FK_T_BME_TASKRUNRESULT_TASKID) violated - child record found可以通过执行sel 阅读全文
posted @ 2012-10-08 15:01 傲衣华少 阅读(9451) 评论(1) 推荐(0) 编辑