Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to find child records given a parent key

OPRJan 11 2009 — edited Jan 13 2009
I have a master table which is parent for several child tables. I want to display a button to delete a record in master table. I would prefer show this button conditionally so when a master record has child records, I don't show delete button and no error is raised.
Of course I could scan every child table to find out child records, but I think must exist a generic method

How can I find out if a given parent key has child records?

Thanks in advance
Oscar
P.S: I'm using 10gR2

Edited by: user10712087 on 13/01/2009 02:31 PM
This post has been answered by Nigel C.L. Thomas on Jan 12 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2009
Added on Jan 11 2009
2 comments
4,332 views