helmis
Member²
Hello
the following procedure must receive a cursor in entry parameter and store it in a table named Person.
.
i'm sending a oracledataset as parametre(complexe variable) from delphi.
The problem is how to declare the cursor "grd_cur" in Pl/sql developper which is received from a oracledataset.
if it is not clear thank you let me know
Thanks
the following procedure must receive a cursor in entry parameter and store it in a table named Person.
Code:
CREATE TABLE Person
(
FIRST_NAME VARCHAR2(250),
LAST_NAME VARCHAR2(250),
COMPANY VARCHAR2(250)
)
Code:
type tcur is ref cursor;
procedure so_p_save_Personne(grd_cur in tcur)is
v_first_name varchar2(250);
v_last_name varchar2(250);
v_company varchar2(250);
begin
open grd_cur;
loop
fetch grd_cur into a,b,c ;
insert into Personne
(first_name, last_name, company)
values
(v_first_name, v_last_name, v_company);
exit when grd_cur%notfound;
end loop;
on exception rollback;
commit;
end;
i'm sending a oracledataset as parametre(complexe variable) from delphi.
The problem is how to declare the cursor "grd_cur" in Pl/sql developper which is received from a oracledataset.
if it is not clear thank you let me know
Thanks