目标:对数据增删改查
执行查询语句报告
cx_Oracle.DatabaseError: DPI-1072: the Oracle Client library version is unsupported
版本问题
win10家庭版 64位
python 3.7 64位
cx_Oracle 8.3 64位
oralce版本 11.2 64位
oracleclient 11.2
都已经配置完毕,还是报错版本不知道,帮忙查询下原因
import cx_Oracle #导入模块
con = cx_Oracle.connect(‘market’, ‘market’, ‘172.16.131.65:1521/market1’) #创建连接
cursor = con.cursor() #创建游标
cursor.execute(“select * from ORCL where ID=‘28’”) #执行sql语句
data = cursor.fetchone() #获取一条数据
print(data) #打印数据
cursor.close() #关闭游标
con.close() #关闭数据库连接