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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: inserting a & sign into a column using SQLPLUS

RE: inserting a & sign into a column using SQLPLUS

From: William Rogge <William_Rogge_at_voltek.com>
Date: Wed, 29 Nov 2000 11:59:38 -0500
Message-Id: <10695.123213@fatcity.com>


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

Original text of this message

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