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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: SQL Plus Default Value for &1 Help

Re: SQL Plus Default Value for &1 Help

From: Stephane Faroult <sfaroult_at_oriole.com>
Date: Fri, 18 Oct 2002 14:13:23 -0800
Message-ID: <F001.004EDDF5.20021018141323@fatcity.com>


"Post, Ethan" wrote:
>
> Anyone got an example for the following...
>
> I have a SQL Script that expects &1 passed into it, however, if &1 is not
> supplied I would like to use a default value and not stop to prompt the
> user. I am playing around with new_value and select nvl('&1','foo') from
> dual...etc...and nothing seems to be working.
>
> Thanks,
> Ethan Post

That's the conclusion I have reached myself in the past. Perhaps you can transform this into a procedure call? Or wrap it into a shell script?

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriole.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Oct 18 2002 - 17:13:23 CDT

Original text of this message

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