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: Help with insert

Re: Help with insert

From: Em Pradhan <empradhan_at_dplus.net>
Date: 1998/11/19
Message-ID: <36541F2F.BF31E1BA@dplus.net>#1/1

Hi

    Get the ascii value for character ' then pipe it (i guess ascii value for ' is 39)

 so if you need to insert, try insert as follows..

insert into test values ('inserting apostrophe '||chr(39)||' cheer....');

hope it help

Diego Pafumi wrote:

> I'm trying to create a varchar containing the ' character to be inserted in a
> table, but I receive an error.
> What I'm doing is:
>
> declare
> var varchar2(20);
> begin
> var := 'a';
> var := var || ''b'';
> insert into table values (var);
> end;
> /
>
> The question is: how can I do to pipe a value with ' ????
>
> Thanks !!!
Received on Thu Nov 19 1998 - 00:00:00 CST

Original text of this message

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