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: apostrophe in a string

Re: apostrophe in a string

From: Alan D. Mills <alanm_at_uk.europe.mcd.mot.com>
Date: 1997/12/30
Message-ID: <01bd153e$3d09a5c0$73d0658c@ukmhdam>#1/1

Try

insert into dummy values ('jane''s cat', 'meow');

if you want to include an apostrophe then you must place two of them together. the first escapes the second.

Alan

Son To <son_at_blue.seas.upenn.edu> wrote in article <68b59v$37a$1_at_netnews.upenn.edu>...
> how can I insert an apostrophe?
> as in
> insert into dummy values('jane's cat','meow');
>
> i tried
> insert into dummy values('jane\'s cat','meow');
>
> but this did not work. any help is appreciated.
>
> thanks,
> son
>
> --
> "Challenge the known and embrace the unknown."
> -another fortune cookie
> Son To
> http://www.seas.upenn.edu/~son
>
Received on Tue Dec 30 1997 - 00:00:00 CST

Original text of this message

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