Añado librerias .dll para funcionamiento en Windows
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
.env
|
||||||
@@ -2,9 +2,10 @@ import os
|
|||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
import cx_Oracle
|
import cx_Oracle
|
||||||
|
|
||||||
|
print("Usuario:", os.getenv("OraHome"))
|
||||||
|
|
||||||
print("cx_Oracle version:", cx_Oracle.__version__)
|
print("cx_Oracle version:", cx_Oracle.__version__)
|
||||||
print("Oracle Client version:", cx_Oracle.clientversion())
|
print(cx_Oracle.clientversion())
|
||||||
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|
||||||
@@ -19,7 +20,7 @@ dsn = cx_Oracle.makedsn(host, port, sid=sid)
|
|||||||
try:
|
try:
|
||||||
connection = cx_Oracle.connect(user=user, password=password, dsn=dsn)
|
connection = cx_Oracle.connect(user=user, password=password, dsn=dsn)
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
cursor.execute("SELECT CODIGO_PERSONAL FROM FPERSONA WHERE APELLIDO1 LIKE '%ALFARO%'")
|
cursor.execute("SELECT CODIGO_PERSONAL FROM FPERSONA WHERE APELLIDO1 LIKE '%ALFARO%' AND NOMBRE LIKE '%JESUS%'")
|
||||||
|
|
||||||
for row in cursor:
|
for row in cursor:
|
||||||
print(row)
|
print(row)
|
||||||
|
|||||||
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user