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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: how to insert quote in a column

Re: how to insert quote in a column

From: Viraj Luthra <viraj999_at_lycos.com>
Date: Mon, 18 Jun 2001 19:14:21 -0700
Message-ID: <F001.0032E015.20010618190527@fatcity.com>

Harvinder,

if you do

select chr(39) from dual, you will get the answer as a '

Therefore, you could do

select chr(39)||1||chr(39) from dual to get:-

'1'

so now you can help your self.

for future when ever you need to find the ascii of such characters, do:-

select ascii('?') from dual;

and you will get 63,

and doing select chr(63) from dual; will get you a ?

hope it helps,

raja

--

On Mon, 18 Jun 2001 15:25:22  
 Harvinder Singh wrote:

>Hi,
>
>I have a column defined as varchar2......i need to insert name like 'joy' in
>it with quote....
>how can we insert quote(') to column.
>
>Thanks
>Harvinder
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: Harvinder Singh
> INET: Harvinder.Singh_at_MetraTech.com
>
>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
>San Diego, California -- Public Internet access / Mailing Lists
>--------------------------------------------------------------------
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
>the message BODY, include a line containing: UNSUB ORACLE-L
>(or the name of mailing list you want to be removed from). You may
>also send the HELP command for other information (like subscribing).
>
Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/ -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Viraj Luthra INET: viraj999_at_lycos.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Received on Mon Jun 18 2001 - 21:14:21 CDT

Original text of this message

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