Hi,
I use cursor in my TD stored procedure. But the output which i get is doubled. Suppose if i just give a select * from tablename without using a cursor I get around 500 rows retrieved. But after using Cursor I get 1000 rows retrieved.
syntax:
replace procedure proc(in aaa timestamp(6)) dynamic result sets 1
declare cursor c1 with return only for select col1,col2,col3 from tablename1;
declare cursor c2 for select * from tablename2;
then i perform some insert update operations
open c1
end;
Hi,
I use cursor in my TD stored procedure. But the output which i get is doubled. Suppose if i just give a select * from tablename without using a cursor I get around 500 rows retrieved. But after using Cursor I get 1000 rows retrieved.
syntax:
replace procedure proc(in aaa timestamp(6)) dynamic result sets 1
declare cursor c1 with return only for select col1,col2,col3 from tablename1;
declare cursor c2 for select * from tablename2;
then i perform some insert update operations
open c1
end;
can someone please help