-
find out which tables reference a table's primary key
how do you query data dictionary to find out which tables references a table's primary key as foreign key?
-
-
select a.TABLE_NAME from user_constraints a , user_constraints b where a.constraint_name = b.R_CONSTRAINT_NAME and a.constraint_type in ('R','P');
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|