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!

how SQL%ROWCOUNT works

Ram_AJul 23 2019 — edited Jul 23 2019

Hi All,

DECLARE

v_count number;

BEGIN

UPDATE customer_dup SET cid = 95 WHERE cno = 'C1222';

v_count:= SQL%Rowcount;

DBMS_OUTPUT.PUT_LINE('count is ' ||v_count);

END;

If I use the statement v_count:= SQL%Rowcount

then I could able to see the updated value from other session.

If I am not using v_count:= SQL%Rowcount  unable to see the updated value from other session.

Please let me know how SQL%ROWCOUNT works.Is it internally issue commit.

Thanks in advance.

Comments
Post Details
Added on Jul 23 2019
4 comments
9,677 views