I have a PL/SQL function (running on Oracle 10g) in which I update some rows. Is there a way to find out how many rows were affected by the UPDATE? When executing the query manually it tells me how many rows were affected, I want to get that number in PL/SQL.
Share
You use the
sql%rowcountvariable.You need to call it straight after the statement which you need to find the affected row count for.
For example: