Hi,
In stored procedure i am using cursor for select statement with for update.
insert into table1 values ('1','a','b');
insert into table1 values ('1','a','c');
insert into table1 values ('1','b','b');
insert into table1 values ('1','d','b');
Ex: define cursor c_cur for select col1,
col2,
col3
from table1
where col1 = '1'
for update;
for r1 as c_cur do
v_count := v_count + 1;
end for;
In Table1, no of rows - 4
but getting v_count = 5.
For loop is running twice for first record.
How to avoid this issue?
i am using SP6 64 bit HANA studio and client - rev 61.
Thanks.