python读取Oracle
#!/usr/bin/python3import cx_Oracle,time,os,sysdef 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 ·
373 阅读 ·
0 评论