Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Escape character inside a select

Escape character inside a select

From: <screwbai_at_my-deja.com>
Date: Thu, 02 Sep 1999 14:55:40 GMT
Message-ID: <7qm354$j64$1@nnrp1.deja.com>


I am making an "sql from and sql" and need to "reproduce" the single quotation mark: '. Like this.

I put SET ESCAPE ON or SET ESCAPE \ before I do the select. Then the select statement:

select 'select \'Fred is \' || age from test2 ' from test1;

The hard workaround to this is to use double quotes " instead of single '. And then do a searh and replease from the file that I spool this sql statement to. Trying to avoid that. Using Oracle release 7.3

Any ideas?

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't. Received on Thu Sep 02 1999 - 09:55:40 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US