# -- coding: utf-8 --
import cx_Oracle #引用模块cx_Oracle
conn=cx_Oracle.connect('smms/smms@172.31.135.231/orcl')
c=conn.cursor() #获取cursor
x=c.execute('select * from is1016') #使用cursor进行各种操作
for i in x.fetchall():
print(i)
c.close() #关闭cursor
conn.close()
python 连接Oracle
最新推荐文章于 2022-09-29 16:41:20 发布