dbTalk Databases Forums  

How to return a record set from a PL/SQL procedure/function?

comp.database.oracle comp.database.oracle


Discuss How to return a record set from a PL/SQL procedure/function? in the comp.database.oracle forum.



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

Default How to return a record set from a PL/SQL procedure/function? - 06-02-2004 , 07:26 AM






Hi,

does anyone know if, and how, I can return a record (set) from a stored
procedure/function?

What does the function have to do?
well at this moment I'm porting our product's database based global registry
from SQL Server to Oracle10g (as it has to work on both). Now I have a
function called CreateKey, which like the name says creates a single key
entry in the global registry. Afterwards it has to return with the created
key (a single row) and it's newly generated globally unique identifier, but
if the key already existed it should return with the existing key
information.

Could someone please help me?

ps. I'm using Oracle10g.

Thanx,
Alexander



Reply With Quote
  #2  
Old   
Jim Kennedy
 
Posts: n/a

Default Re: How to return a record set from a PL/SQL procedure/function? - 06-02-2004 , 09:47 AM







"Alexander Pino" <Alexander.Pino (AT) cea-int (DOT) com> wrote

Quote:
Hi,

does anyone know if, and how, I can return a record (set) from a stored
procedure/function?

What does the function have to do?
well at this moment I'm porting our product's database based global
registry
from SQL Server to Oracle10g (as it has to work on both). Now I have a
function called CreateKey, which like the name says creates a single key
entry in the global registry. Afterwards it has to return with the created
key (a single row) and it's newly generated globally unique identifier,
but
if the key already existed it should return with the existing key
information.

Could someone please help me?

ps. I'm using Oracle10g.

Thanx,
Alexander


Look up ref cursor in the docs as an out parameter.
Jim




Reply With Quote
  #3  
Old   
Alexander Pino
 
Posts: n/a

Default Re: How to return a record set from a PL/SQL procedure/function? - 06-03-2004 , 06:03 AM



Probably I should have mentioned that I want to use it in combination with
..NET and C# in particularly.

Alexander

"Alexander Pino" <Alexander.Pino (AT) cea-int (DOT) com> wrote

Quote:
Hi,

does anyone know if, and how, I can return a record (set) from a stored
procedure/function?

What does the function have to do?
well at this moment I'm porting our product's database based global
registry
from SQL Server to Oracle10g (as it has to work on both). Now I have a
function called CreateKey, which like the name says creates a single key
entry in the global registry. Afterwards it has to return with the created
key (a single row) and it's newly generated globally unique identifier,
but
if the key already existed it should return with the existing key
information.

Could someone please help me?

ps. I'm using Oracle10g.

Thanx,
Alexander





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 - 2013, Jelsoft Enterprises Ltd.