oracle如何查看一个外键属于哪个表
1、很多时候我们需要删除一些表格,或者是一些数据的记录内容,但是系统软件又会给你报错说外键约束不能删除外检,那这种情况下该怎么办呢。

3、举例说明:假如程序日志中报错误,我需要知道这个外键是在哪个表上.2015-09-08 18:28:18 [ main:261597003 ] - [ ERROR ] java.sql.SQLException: ORA-02291:

5、再举例说明:我们在执行delete from tablename时报错:ORA-02292: integrity constraint (CCSYS.FK_T_BME_TASKRUNRESULT_TASKID) violated - child record found 可以通过执行select table_name from dba_constraints where constraint_name='FK_T_BME_TASKRUNRESULT_TASKID' and constraint_type = 'R';
