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: How can i store and retrieve strings with ' (Single quote) ??

Re: How can i store and retrieve strings with ' (Single quote) ??

From: Ian Cary <cary_at_gatwick.geco-prakla.slb.com>
Date: 1997/12/05
Message-ID: <3487F9A4.4D27E23B@gatwick.geco-prakla.slb.com>#1/1

Bharat Yarlagadda wrote:

> Is there an escape char. that i can use to escape a ' in strings while
> storing the data. If there is any other way one could store and retrieve
> a single quote (') in varchar2 data type columns.

Yes. it is the ' itself eg.

insert into taba(varch_fld) values ('I''ve got a quote in!')

Cheers,

Ian Received on Fri Dec 05 1997 - 00:00:00 CST

Original text of this message

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