Re: Counting arguments passed to SQL or PL/SQL?
Date: Sat, 21 Jul 2001 21:17:27 GMT
Message-ID: <uEF_6.14088$P5.4769427_at_news1.rdc1.tn.home.com>
Seems that the problem is with the parameterized SQL query.
When you tell the query that there will be 5 parameters it MUST have them.
If it can not find them it will ask.
You need to deal with the argument count ambiguity.
For example if you list is a set of possible values of a single column
consider
... WHERE your_col IN (?);
Take you set of possible values in the parameter list, place them in one
string, with proper quotes, and deliver a single parameter.
More details about 'switches and such' will help provide more example.
"Jeff Wilson" <jwilson2000_at_home.com> wrote in message
news:nhRZ6.246704$p33.4982544_at_news1.sttls1.wa.home.com...
> Have checked all the on-line FAQs but can't find the answer to this.
>
> Have a PL/SQL script that takes optional arguments for switches and such.
I
> know &1, &2, etc., represent these arguments, but is there a variable that
> represents the number of arguments?
>
> The problem I'm having is that if a variable is not passed in, then SQL
asks
> for it's value if it is encountered in the script. I need some way of
> knowing if a variable is set.
>
> Thanks.
>
> --
> Jeff Wilson
> jwilson2000_at_home.com
> Eugene, Oregon
>
> (541) 684-8590
>
>
Received on Sat Jul 21 2001 - 23:17:27 CEST