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

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

sqlplus substitution variables

From: LS Cheng <exriscer_at_gmail.com>
Date: Fri, 28 Dec 2007 19:27:48 +0100
Message-ID: <6e9345580712281027l4657dd22kd2aa8ca186597428@mail.gmail.com>


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 - 12:27:48 CST

Original text of this message

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