Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> SQLPLUS PROBLEM : How to test if a variable is defined ?
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 Tue Feb 05 2002 - 05:47:25 CST
![]() |
![]() |