I can check what the columns in a foreign key are that are referencing but how do I know which columns this foreign key is referencing in the other table? Since, it doesn't have to be the primary keys of a table. Is there an easy way to do this on Oracle SQL Developer without executing any query?
How to know to which columns a foreign key is referencing in Oracle SQL Developer?
637 Views Asked by Sammy At
2
You could join the user_cons_columns and user_constraints views to get the metadata information for the primary key and foreign key references.
For example,
You could also use DBMS_METADATA.GET_DDL to generate the DDL for the table. It will have complete table information.
For example,