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: Determine if a parameter has been passed

Re: Determine if a parameter has been passed

From: Brian Tkatch <N/A>
Date: Thu, 20 Sep 2007 16:35:00 -0400
Message-ID: <g9m5f3tq731dk2kc9r3heccm089r7gu8va@4ax.com>


On Thu, 20 Sep 2007 16:02:22 -0400, Walt <walt_askier_at_SHOESyahoo.com> wrote:

>fitzjarrell_at_cox.net wrote:
>> On Sep 20, 6:05 am, addve..._at_gmail.com wrote:
>>> Hi,
>>> There is a Stored procedure which has 10 parameters. All of the
>>> parameters are of type VARCHAR2. The invoker has been given the
>>> facility that, he/she may pass in only 3 out of the 10 parameters.
>>> My question is this, is it possible to determine inside the
>>> Stored procedure, whether a parameter has been passed or not by the
>>> invoker?
>>>
>>> Please note the invoker may pass NULL in any one of the parameters.
>
>> What purpose does this serve, really? Why do you 'need' to know how
>> many of the 10 parameters were actually passed values by the invoker?
>> This seems to be an exercise in futility to me.
>
>Agreed. What's the difference between the user passing in NULL and the
>user not specifying the parameter at all? Seems the same to me.
>
>//Walt

To take a wild guess, it matters which parameters will be searched. Checking for a NULL (x IS NULL) and ignoring a NULL (x=x) are two different things.

B. Received on Thu Sep 20 2007 - 15:35:00 CDT

Original text of this message

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