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

Home -> Community -> Usenet -> c.d.o.misc -> Re: how to avoid & prompting in sql+?

Re: how to avoid & prompting in sql+?

From: Karsten Farrell <kfarrell_at_belgariad.com>
Date: Fri, 15 Nov 2002 00:49:35 GMT
Message-ID: <zwXA9.529$f%2.74101152@newssvr21.news.prodigy.com>


Sharkie wrote:
> I have a text file with lots of insert statements. The textual values
> of the varchar columns are provided through some other script.
> Sometimes the strings contain the "&" char, so when executing
> the insert statements in sql+ I'm always prompted for a value.
>
> Is there a way to avoid this prompting? I'd like sql+ to consider this
> char as any other char and just insert it. I could do a global replace
> in the text file replacing the "&" with some other character,
> before running it, but isn't there a setting in sql+ to ignore it?
>
> the db is 8.1.7 run on Solaris
> (but I also use a test db: 8.1.7 on Win2K)
In sqlplus, disable variable substitution by typing:

set define off

If you need to prompt for variable substitutes, use:

set define '<some_unused_character>' Received on Thu Nov 14 2002 - 18:49:35 CST

Original text of this message

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