Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Inserting a & into a table
Hi,
Try this command, it'll work;
insert into table_name(column_name) values ('Rock ' || chr(38) || ' Hard Place');
Regards
Shawn A. Savela wrote:
> There has *got* to be an easy solution to this:
>
> 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?
>
> Any help would be greatly appreciated...
>
> -SS
Received on Thu Apr 02 1998 - 00:00:00 CST
![]() |
![]() |