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: Help - SQL update of character field in table

Re: Help - SQL update of character field in table

From: Boi Hue La <boihuel_at_montreal.radio-canada.ca>
Date: 1998/10/23
Message-ID: <3630A0F6.A16B92DC@montreal.radio-canada.ca>#1/1

Hi,

Here's the solution:

     update tablex set description='Up Miller''s creek' where response=1

(Two characters of ' between r and s).

Regards

Steve Agnew wrote:

> I'm new to SQL Plus, so I hope this question isn't to stupid...
>
> I would like to know how to update a character field in a table when
> the
> information being added contains a single-quote.
>
> For example, the following works fine:
> update tablex set description='Up the creek' where response=1
> but
> update tablex set description='Up Miller's creek' where
> response=1
> comes back with an error.
>
> Is there some way to get around this problem?
>
> I would appreciate any assistance.
>
> Steve
Received on Fri Oct 23 1998 - 00:00:00 CDT

Original text of this message

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