分两个步骤:
--查询所有约束信息 select * from user_constraints e where e.table_name='表名'; --根据CONSTRAINT_NAME名查询外键信息 select a.constraint_type,a.table_name,a.status, b.table_name,b.column_name,b.constraint_name from user_constraints a inner join user_cons_columns b on a.constraint_name = b.constraint_name where a.r_constraint_name='约束名'