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 -> Re: QUESTION: Delimiting for use of a & in an insert

Re: QUESTION: Delimiting for use of a & in an insert

From: Thomas Kellerer <WVIJEVPANEHT_at_spammotel.com>
Date: Thu, 10 Nov 2005 00:26:34 +0100
Message-ID: <3tfetaFri16hU1@individual.net>


BD wrote on 09.11.2005 23:48:
> Hi, all.
>
> I have a need to insert a string value into a VARCHAR2(4000) field in
> Oracle 8i. The string value happens to be a large SQL statement in
> itself; the purpose of this is to record some ad-hoc queries for
> further use.
>
> The string value contains the phrase 'WA & CA but no OR'.
>
> When I do the insert in TOAD or SQL++ I am prompted for the value of
> 'CA' - obviously, it's interpreting that '&' character as an indicator
> for a variable.
>
> I could change the '&' to 'and', but this is running into some
> business-level resistance; I have been asked to find a way to delimit
> the string such that the '&' character is inserted.
>

In SQL*Plus:

set define off;

A look in the SQL*Plus manual will reveal that :)

No Idea about TOAD

Thomas Received on Wed Nov 09 2005 - 17:26:34 CST

Original text of this message

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