cx_oracle -- how to insert "&"

A

Allen

I am using Python with cx_oracle to load an excel spreadsheet into an
Oracle table. There are lots of text on the spreadsheet that have "&"
in them which I want to keep in the table. But inserting those text
will fail. Is there a work around for this? I can filter out the
failed insert statements and in SQLPLUS set define off to run those
statements, but it would be nice to insert "&" directly in PYTHON.

Allen
 
S

Steve Holden

Allen said:
I am using Python with cx_oracle to load an excel spreadsheet into an
Oracle table. There are lots of text on the spreadsheet that have "&"
in them which I want to keep in the table. But inserting those text
will fail.

Why do you say that?
Is there a work around for this? I can filter out the
failed insert statements and in SQLPLUS set define off to run those
statements, but it would be nice to insert "&" directly in PYTHON.
regards
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,742
Latest member
AshliMayer

Latest Threads

Top