INSERT inside plsql procedure does not show how many rows have been inserted

I am trying to insert some lines and update some lines inside a pl / sql loop.

however all I can see is the pl / sql procedure completed successfully.

I can see dbmbs_ouput instructions, but not the output status of insert and / or update requests.

serveroutput is set to on.

how can i see the status of the insert and update rows (namely how many rows have been inserted and updated)

+1


source to share


1 answer


Oracle rowcount

does not automatically output as it does in SQL Server

.

You have to do it explicitly:



BEGIN
        INSERT
        INTO    mytable
        SELECTFROM    other_table;
        DBMS_OUTPUT.put_line(SQL%ROWCOUNT);
END;

      

+3


source







All Articles