Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: inserting a & sign into a column using SQLPLUS
use a chr(38) in place of the '&'. in your command it would be chr(38)||'Start'
-----Original Message-----
From: John Dunn [SMTP:john.dunn_at_sefas.co.uk] Sent: Wednesday, November 29, 2000 11:41 AM To: Multiple recipients of list ORACLE-L Subject: inserting a & sign into a column using SQLPLUS
> When using SQLPLUS on UNIX, how do I get it to treat "&" as a literal
> value rather than asking for a substitution e.g.
>
> INSERT INTO FORM_TEXT VALUES (
> 1, 3, '&Start'
> );
>
> I want the field in the table to contain &Start, and not prompt me for a
> value.
>
> I'm tried &&Start, \&Start, /&Start to get it to treat it as a character
> but no luck.
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: John Dunn INET: john.dunn_at_sefas.co.uk 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 Wed Nov 29 2000 - 10:59:38 CST