Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: single quote
Ong Chin Hui wrote:
>
> Hi, I am using Java and Oracle RDBMS.
>
> When forming the SQL statements for call to Oracle, some statements
> cause error because of existence of single quote in some columns.
>
> Eg. insert into COMPANY values ( 'SAN'ANGLE', ... )
>
> Instead of scanning for single quote, is there any easy way out ?
Duplicate the quote inside the string e.g 'SAN''ANGLE' Received on Thu Oct 30 1997 - 00:00:00 CST