时间:2021-07-01 10:21:17 帮助过:75人阅读
python连接示例代码:
# -*- coding: utf-8 -*-import cx_Oracle conn=cx_Oracle.connect('reporter','password','localhost:1521/ORCL') cursor=conn.cursor() sql="select * from test"cursor.execute(sql) data=cursor.fetchall()print(data) cursor.close() conn.commit() conn.close()
以上就是windows下python连接oracle数据库实例方法的详细内容,更多请关注Gxl网其它相关文章!