Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQLPLUS PROBLEM : How to test if a variable is defined ?
I suppose you want the script to be run and if the parameter is not
supplied you want the ACCEPT executed. But if you don't specify a
parameter you will be prompted with something like 'Give value for
1:'.
Jaap.
On 5 Feb 2002 03:47:25 -0800, plavigerie_at_transiciel.com (Philippe LAVIGERIE) wrote:
>Hi all,
>I would like to test if a variable is defined in a script.
>Example :
>CONN.SQL
>> if &1='' then ACCEPT 1 PROMPT "Give the instance name"
>> connect system/manager@&1
>
>I can not use COL 1 NEW_VALUE because I'm not connected before running CONN.SQL
>Is it possible or not ?
>Thanks for your answers.
Received on Thu Feb 07 2002 - 13:17:39 CST