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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: sqlplus substitution variables

Re: sqlplus substitution variables

From: David Taft <oradbt054_at_gmail.com>
Date: Fri, 28 Dec 2007 14:57:26 -0500
Message-ID: <69b058e80712281157x2f03ee47hd5dac2dee7e32001@mail.gmail.com>


LSC, The only way I know to do this is inside PL/SQL. See the following as an example.

Cheers,

David

On Dec 28, 2007 1:27 PM, LS Cheng <exriscer_at_gmail.com> wrote:

> Hi
>
> Writting some informix migration scripts here and just got a bit stucked.
>
> When we invoke sql scripts in sqlplus with arguments such as
>
> @test.sql par1 par2 par3
>
> par1, 2 and 3 can be treated as &1, &2 and &3
>
> I have a situation where the number of arguments can vary so I can have
> from par1 only up to par3 inclusive.
>
> Basically does anyone know if there is something similar as $# in ksh but
> for SQLPLUS? Or anyway to treat do something like NVL('&2', ';') (this does
> not seem to work as it prompts and asks for a value)
>
> Thanks
>
> --
> LSC
>
>

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Dec 28 2007 - 13:57:26 CST

Original text of this message

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