Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: sqlplus substitution variables
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-lReceived on Fri Dec 28 2007 - 13:57:26 CST
![]() |
![]() |