Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: pl/sql function

Re: pl/sql function

From: Tim Cross <tcross_at_nospam.une.edu.au>
Date: 22 Jul 2002 10:59:27 +1000
Message-ID: <8765z88tn4.fsf@blind-bat.une.edu.au>


"Peter" <depend3_at_yahoo.com> writes:

> Is it possible to return two values when you write a function without
> concat? If yes, how do you do this?
> Thanks.
>
>

As far as I know, you can only return one "thing" - however that "thing" could be a record which contains multiple other "things" - so if you need to return two (or more) distinct values, define a record which represents the values to be returned, put those values in the record and return that.

Alternatively, make one of the values you want to return an IN OUT parameter to the function call and put one value in that parameter and return the other.

Tim

-- 
Received on Sun Jul 21 2002 - 19:59:27 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US