Re: Update is not working
From: Rich Jesse <rjoralist2_at_society.servebeer.com>
Date: Mon, 16 Jan 2012 11:52:59 -0600 (CST)
Message-ID: <840caaa8bae10689a3d16012ae1437fe.squirrel_at_society.servebeer.com>
Hi Eriovaldo,
Date: Mon, 16 Jan 2012 11:52:59 -0600 (CST)
Message-ID: <840caaa8bae10689a3d16012ae1437fe.squirrel_at_society.servebeer.com>
Hi Eriovaldo,
> Hi friends,
> I am in trouble to do the following update:
>
> update eri set texto = 'CONDUTOD MC'S 12234' ;
>
> How can I do it ?
You need to escape the apostrophe (single-quote) in the text. One way to do this is simply double it:
update eri set texto = 'CONDUTOD MC''S 12234' ;
Another is to use the "q" alternative quoting mechanism:
update eri set texto = q'[CONDUTOD MC'S 12234]' ;
Both are described in the Oracle docs. GL!
Rich
-- http://www.freelists.org/webpage/oracle-lReceived on Mon Jan 16 2012 - 11:52:59 CST