I’ve inherited a schema so don’t have complete knowledge/confidence in what is there.
I have a project table with a projectId. There are a whole bunch of other tables that reference this table by project id. What I want to do is run a query to establish:
- Which tables have foreign key references to the project table on
the project id - Which tables have a column called project id (in
case foreign keys are not set up).
If it was SQL Server I know how to query the metadata but how do I do this in Oracle?
1)
2)
You may want to add an extra predicate containing the OWNER column.
Regards,
Rob.