Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: Insert single quote

Re: Insert single quote

From: SC <s_c_99_at_hotmail.com>
Date: 2000/04/19
Message-ID: <38FD6D80.A9AFBAE8@hotmail.com>#1/1

apart from '''', you can also use
chr(39) <--- 39 is the ascii value for single quote.

try select 'It'||chr(39)||'s easy to do!' from dual;

hope it helps.

s_c_99_at_hotmail.com

Marty Provost wrote:
>
> Stupid question...
>
> What's the syntax to insert a string that contains a single quote?
>
> Example:
>
> TABLENAME
> columnname varchar2(100)
>
> insert into tablename (columname)
> values ('help me insert this ' into this column');
>
> Thanks in advance,
> Marty
  Received on Wed Apr 19 2000 - 00:00:00 CDT

Original text of this message

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