Re: With SQLPLUS, how to get an environment variable ?
From: Aiwen Xu <axu_at_ipoline.com>
Date: 1996/10/25
Message-ID: <54pfv6$1gt_at_news.ipoline.com>#1/1
Date: 1996/10/25
Message-ID: <54pfv6$1gt_at_news.ipoline.com>#1/1
Hi, Jean-Marc,
You can just put the $MYENVAR at UNIX command line like:
$ sqlplus username/password _at_sql_script $MYENVAR
And in the sql_script.sql:
select <fields> from <table> where <field>= '&1'
Since the variable &1 is $MYENVAR, your select statement will get your UNIX environment variable. Hope it will help you.
Aiwen Received on Fri Oct 25 1996 - 00:00:00 CEST