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

Home -> Community -> Usenet -> c.d.o.server -> SQLPLUS PROBLEM : How to test if a variable is defined ?

SQLPLUS PROBLEM : How to test if a variable is defined ?

From: Philippe LAVIGERIE <plavigerie_at_transiciel.com>
Date: 5 Feb 2002 03:47:25 -0800
Message-ID: <6ab5ef89.0202050347.2ad90c76@posting.google.com>


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

Original text of this message

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