I been googling a good chunk of the day looking for any kind of examples on how to accomplish what i am trying to do.
I had a python script that needs to access an oracle 11g database and run a select statement to pull back some records. The select statement is pretty much a simple:
there is how i have my python code setup:
it blows up with an invalid character oracle error, which it's complain about the percent sign being in the query. I've tried escaping it and doing all sorts of stuff to try and get it to work, but i am all out of ideas.
has anyone worked with this module before and know what i am doing wrong?
I had a python script that needs to access an oracle 11g database and run a select statement to pull back some records. The select statement is pretty much a simple:
Code:
select * from table where column like 'pattern%'
there is how i have my python code setup:
Code:
import cx_Oracle
c = cx_Oracle.connect('schema/password@dbhost/service')
cr = c.cursor()
cr.execute('select * from table where column like pattern%')
it blows up with an invalid character oracle error, which it's complain about the percent sign being in the query. I've tried escaping it and doing all sorts of stuff to try and get it to work, but i am all out of ideas.
has anyone worked with this module before and know what i am doing wrong?