If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Informix - procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-05-02, 16:06
alaboudi alaboudi is offline
Registered User
 
Join Date: Jul 2002
Posts: 2
Informix - procedure

hi,

I'm new in INFORMIX and i want to know wether Informix procedures are able to return a result set (a list of employees for example).

if yes how it works ?

I looked for this in some documentation but i didn't find any information about it.

please if you can confirm me .

thanks in advance,
Reply With Quote
  #2 (permalink)  
Old 07-26-02, 04:58
zhouk zhouk is offline
Registered User
 
Join Date: Jul 2002
Posts: 1
procedures are able to return a result set

Hi,
first , in procedure body, you must use
CREATE PROCEDURE func_name (input_params)
RETURNING output_params
...
FOREACH
( put return value to output_params )
RETURN output_params WITH RESUME
...
END PROCEDURE

then, Call the procedure use
PREPARE ps FROM "EXECUTE PROCEDURE func_name (input_params)"
DECLARE cur CURSOR FOR ps
so, you can get the values of procedure's result set.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On