delete statement: how to get count of affected rows in a variable
Hi folks
I write a proc which deletes data from bunch of table based on data value. i want to produce a report which will have 1 line for each table like:
Del: Table name : number of rows
I parse delete statement into variable and use execute immediate. I know I could precede delete by select count(*) using the same criteria. Is there any more effective way to catch output from execution of 'delete' itself to avoid an overhead of running select count(*)?
Thank you, Gene.