#!/usr/bin/env python
# -*- coding: utf-8 -*- 
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import os 
os.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.UTF8' 

import cx_Oracle
db=cx_Oracle.connect('xxx','xxx','xx:1521/xx')
print db.version
cursor = db.cursor() 
cursor.execute("select * from xxx")
result = cursor.fetchall()
print result
db.close()
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""