python读取Oracle
#!/usr/bin/python3
import cx_Oracle,time,os,sys
def get_data_from_oracle():
db = cx_Oracle.connect('user', 'pwd', '10.3.1.100:1521/xx')
cursor= db.cursor()
sql = "select * from order_table"
print (sql + "\n")
cursor.execute(sql)
result = cursor.fetc
原创
2020-09-03 16:06:14 ·
429 阅读 ·
0 评论