Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: escape key ???
The default value in SQL*Plus for escape is \ not /. / is reserved and says
'execute the statement in the buffer or the above pl/sql block'. You can set
it to a different value with SET ESCAPE command.
Use the CHR function instead of escaping.
insert into table values ('a '||chr(38)||' b');
This will be independent of any escape or other settings.
Dan Fink
-----Original Message-----
Sent: Tuesday, July 16, 2002 5:18 PM
To: Multiple recipients of list ORACLE-L
Hi all,
I need to insert some value with & as a part of the
string.
For example, insert ... values ('a & b'); What escape
key should be used?
insert ... values ('a /& b'); -- doesn't work insert ... values ('a '||'&'||' b'); -- works, but I'd like to know what escape key works in this case.
Thank you.
Leslie
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Tue Jul 16 2002 - 19:39:14 CDT