Oracle all foreign key references -


I have inherited a schema so that does not have full knowledge / faith in it.

I have a project table with Project ID. I is a complete group of other tables that refers to this table via Project ID What I want to do is run to install a query:

  1. In the table, there are foreign key references to the project table on Project ID
  2. Which tables have a column called Project, ID (in case the foreign key is not set Goes).

If this was SQL Server, then I know how to ask metadata, but how do I do it in Oracle?

1)

  Select the table_name from all_constrains where r_constraint_name = Select your table_name from all_tab_column where [column_name = 'PROJECT_ID']  Your pk / uk barrier on projects]  

2)

  > 

You want to add an extra bill containing the ovener column.

Regards, Rob.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -