Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Insert &
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
-- 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
![]() |
![]() |