dbTalk Databases Forums  

REF CURSOR

comp.database.oracle comp.database.oracle


Discuss REF CURSOR in the comp.database.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kintaro
 
Posts: n/a

Default REF CURSOR - 05-26-2004 , 04:19 AM






Hi again!
I tryed as u told me but i still gave some difficulties.. ^^
So i thought to post the code of my stored procedure... and the error
oracle gives to me :P

First i created the package:

CREATE OR REPLACE PACKAGE "SPASQUA"."riferimenti" is type curref is
ref
cursor;
end riferimenti;

and the corrisponding package body:

CREATE OR REPLACE PACKAGE BODY "SPASQUA"."riferimenti" is type
curref is
ref cursor;
end riferimenti;

then the procedure:


CREATE OR REPLACE PROCEDURE "SPASQUA"."RESULTS" (oggetto in
varchar2,
rife out riferimenti.curref)
as
cursor result is
select oggetto
from allarmi
where oggetto between 10 and 15;
reftype result%rowtype;
begin
open result;
fetch result into reftype;
close result;
open rife for
select * from session_context;
end returnresults;

I really hope u can help me out ^_^;;
10x!

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.