Re: OCI: How can I insert a string including an amphersand (&) from OCI??
From: Ole Hansen <oha_at_unispeed.com>
Date: Mon, 14 Oct 2002 11:02:51 +0200
Message-ID: <3DAA883B.7030204_at_unispeed.com>
Date: Mon, 14 Oct 2002 11:02:51 +0200
Message-ID: <3DAA883B.7030204_at_unispeed.com>
Hi,
However the problem seems to be something different which I will look into.
Thanks!
Ole
Rauf Sarwar wrote:
> Ole Hansen <oha_at_city.dk> wrote in message news:<3DA7F1A6.8070000_at_city.dk>...
>
>>Hi,
>>
>>I have troble escaping an amphersand (&) from within OCI.
>>Neither single quote (') or backslash (\) seems to work.
>>
>>The statement fails if I try to execute it from OCI if the string
>>includes an amphersand but I dont know how to escape an amphersand (&).
>>
>>I really need to store the amphersand with the string.
>>
>>Any ideas?
>>
>>Thanks in advance!
>>Ole Hansen
> > > > Use ASCII value of & i.e. CHR(38). To store abcd&efgh, > Insert into foo values ('abcd' || CHR(38) || 'efgh'); > > /Rauf SarwarReceived on Mon Oct 14 2002 - 11:02:51 CEST