Skip to Main Content

SQL & PL/SQL

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!

Counting deleted rows from child tables when using on delete cascade

user632916Apr 24 2008 — edited Apr 24 2008
Hello everybody,
I got a problem I can't solve.. I looked around but didn't find an answer so maybe you can help me.

Here at work they're asking me if we can use "on delete cascade" constraints on child tables but still being able to get the count of the rows deleted in each child.

So if I got a table "Father" and 6 tables "child1....child6" with on delete cascade constraint to table Father, and I delete 5 rows from the table Father, can I see how many rows I deleted in each table child1...child6? How?
If I use sql%sqlrowcount after the delete statement I only get the number of rows delete in the table Father...

Thank you in advance.

Giorgio.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 22 2008
Added on Apr 24 2008
4 comments
1,121 views