Created
September 18, 2013 19:28
-
-
Save marcosvidolin/6614268 to your computer and use it in GitHub Desktop.
Oracle - See all table relationships
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select table_name from user_constraints | |
where r_constraint_name in | |
(select constraint_name | |
from user_constraints | |
where constraint_type in ('P','U') | |
and table_name = upper('&tableOfInterest') | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment