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: Inserting a & into a table

Re: Inserting a & into a table

From: Udo Weigl <weigl_at_coglas.com>
Date: 1998/04/01
Message-ID: <VA.00000005.019365a7@udo.cogl>#1/1

In article <01bd5d44$0a54a280$c802030a_at_server>, Shawn A. Savela wrote:
> How do I insert a row into a table that has an embedded '&'
> character in it via sqlplus?
>
> I tried :
>
> insert into mytable (field1) values ('Rock & Hard Place');
>
> and it asks me to define 'Hard'. Any combination of &&
> or &&& or /&, etc fails (obviously, I can't find any
> documentation on this). Do I need to do a CHR(?) or
> something to that effect, or is there an escape character
> I can use?
>

Try :
  insert into mytable (field1) values ('Rock' || '&' || 'Hard Place');   

Udo Received on Wed Apr 01 1998 - 00:00:00 CST

Original text of this message

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