Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Inserting single quote into the table
On Fri, 12 Mar 1999 16:11:19 GMT, sannarayan_at_my-dejanews.com wrote:
>Can anyone please tell me how to insert
>a single quote (" ' ")into an oracle table.
I think the easiest way is to use the chr() function, supplying it the ASCII value for a single quote, which is 39.
Try:
insert into mytable (mycolumn)
values ( chr(39) || 'Hello' || chr(39) );
select * from mytable;
MYCOLUMN
Chris
![]() |
![]() |