The problem is that I'm doing some queries to the oracle 9 database from my python 2.7 script with the help of cx_oracle but when printing the cursor values it does not return information which IF IT EXISTS in the database.
I have tried placing the values of each field in the where with single quotes, without single quotes, with = to_char (##) and nothing that returns the information.
It should be noted that all the columns in the table are Varchar (2) and when doing the query in the manager if you return information .
Next the code
# -*- coding: cp1252 -*-
import cx_Oracle
ip = 'xxx.xxx.xxx.xxx'
port = xxxx
SID = 'xxxxx'
dsn_tns = cx_Oracle.makedsn(ip, port, SID)
conector = cx_Oracle.connect('USER', 'PASS', dsn_tns)
cursor = conector.cursor() #cursor
#AQUI EL QUERY
querystring ="""SELECT * FROM NOMBRE_TABLA
where cia='1'
and scia='2'
and ccosto='1500'
and line='00'
and fn='00'
and cta='12345678' """
cursor.execute(querystring)
cursor.fetchmany()
for c in cursor:
print c
and I do not have information in the Python Shell.