oracle查看表之间的关联关系

来源:互联网 发布:excel引用数据 编辑:程序博客网 时间:2024/05/18 18:17

select u1.CONSTRAINT_NAME, u1.TABLE_NAME as table_, u2.TABLE_NAME as reference_   from user_constraints u1, user_constraints u2   where    u1.constraint_type='R' and  u1.R_CONSTRAINT_NAME = u2.CONSTRAINT_NAME and  u2.table_name='target_table_name'  

转载自:

http://blog.csdn.net/demeanor/article/details/4729384

原创粉丝点击