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!

Returning sql%ROWCOUT from a function - good idea?

mikezatJul 7 2017 — edited Jul 10 2017

Hi! When I worked with SQL Server, returning the number of rows from a function that performed updates or deletes was frown upon, In fact, we had to disable row count in every function/procedure.

I am wandering what ramifications of returning SQL%ROWCOUNT from Oracle PL\SQL perspective are? Is sql%rowcount known to slow things down? Is it reliable/consistent?

The function is to be used from a distributed web app with connection pooling.

I googled but cannot seem to find any discussions?

Many thanks in advance,

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 7 2017
Added on Jul 7 2017
5 comments
832 views