Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Dumb Question, how to insert ' into varchar2 field
Anurag Varma wrote:
> Norm,
>
> Yes you are correct. This behavior reminds me as being similar to how
> perl does the quoting.
>
> But to run some tests:
>
> ORA10.1> select q'{abcd ' efgh}' from dual;
>
> Q'{ABCD'EFGH}'
> ---------------------------------
> abcd ' efgh
>
> ORA10.1> select q'[abcd ' efgh]' from dual;
>
> Q'[ABCD'EFGH]'
> ---------------------------------
> abcd ' efgh
>
<SNIP>
Looks nice - thanks for doing the testing for me. Seems like they built in some nice delimiter handling.
Cheers,
Norm.
Received on Tue Feb 15 2005 - 11:46:55 CST