How to get the rows processed count after the SQL statement is finished?
The direct_exec() function returns a long int value, which, if it is >= 0, it returns the rows processed count of the constant SQL statement.Also, otl_stream::get_rpc() returns a long int value, which is the rows processed count. The rows processed count is defined for INSERT, UPDATE, and DELETE statements. RPC for SELECT statements means rows fetched count. For any other SQL statement, PL/SQL block, or a stored procedure call, the count is always 0.