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: Insert &

Re: Insert &

From: Tim Sawmiller <sawmillert_at_state.mi.us>
Date: Tue, 06 Mar 2001 12:33:57 -0800
Message-ID: <F001.002C50E1.20010306123940@fatcity.com>

use SET DEFINE to assign a different character than '&', such as:

SET DEFINE !
>>> master_dba_at_hotmail.com 03/06/01 03:07PM >>>
Hi,

What is the best way to Insert when we have '&' as part of our string. I want to frame INSERT statements such as the one below, and pass on to the user.

insert_customers.sql:

INSERT INTO customers (customer_name) VALUES ('Sun Microsystems');
INSERT INTO customers (customer_name) VALUES ('HP');
INSERT INTO customers (customer_name) VALUES ('AT & T');
bla bla bla

This script asks for Input and does not Insert correctly. Please suggest me how I can modify the script and still be able to insert AT & T correctly.

TIA, Krishna



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Krishna Rao K
  INET: master_dba_at_hotmail.com 

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).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Tim Sawmiller
  INET: sawmillert_at_state.mi.us

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 Mar 06 2001 - 14:33:57 CST

Original text of this message

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