Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: how to avoid & prompting in sql+?
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