Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: inserting records (with & character)
In article <5dombj$54s_at_nuscc.nus.sg>,
Motley Crue, Vaxxer <chuacl_at_iscs.nus.sg> wrote:
>When I tried to insert a record contains a '&' character into a varchar2
>datatype column, it will prompt me for the value of string that appears after
>the & char, eg record is "t & t1"
>
>After I entered the insert sql statement, I'll get the following
>Enter value for t1:
>#after I pressed enter
>old : insert ....... values("t & t1")
>new : insert ....... values("t & ")
Try: insert ....... values('t '||chr(38)||' t1')
The chr function can be used to insert any character.
Steve Cosner
![]() |
![]() |