Hello folks, I wrote this code for connection module yesterday to extract data from an Oracle db and it worked - I was happy and went home for the evening thinking today I will write the rest of the program. However to my dismay, the same code does not work today and I am not sure what is the problem. Here is the code and the error:
I replaced the login information with dummy variable "connString "in the above code. Some help on the matter would be greatly appreciated - I tried to do google search and search on this board to see if I can find something that would help but was not successful.
>>> import cx_Oracle
>>> orc1=cx_Oracle. connect(connStr ing)
>>> curs=orc1.curso r
>>> sql="SELECT COUNT(*) FROM PS_PEPTIDES WHERE RANK = 1"
>>> curs.execute(sq l)
>>> orc1=cx_Oracle. connect(connStr ing)
>>> curs=orc1.curso r
>>> sql="SELECT COUNT(*) FROM PS_PEPTIDES WHERE RANK = 1"
>>> curs.execute(sq l)
Traceback (most recent call last):
File "<pyshell#4 >", line 1, in -toplevel-
curs.execute(sq l)
AttributeError: 'builtin_functi on_or_method' object has no attribute 'execute'
File "<pyshell#4 >", line 1, in -toplevel-
curs.execute(sq l)
AttributeError: 'builtin_functi on_or_method' object has no attribute 'execute'
I replaced the login information with dummy variable "connString "in the above code. Some help on the matter would be greatly appreciated - I tried to do google search and search on this board to see if I can find something that would help but was not successful.
Comment