#encoding=utf-8
import MySQLdb
import cx_Oracle
orcon = cx_Oracle.connect("username", "password", "172.29.131.25:1521/orcl")
orcursor = orcon.cursor()
orcursor.execute("select columnname from tablename ")
row=orcursor.fetchall()
for r in row:
for cell in r:
print cell
orcursor.close()
orcon.close()
posted on 2009-07-28 09:43
周銳 閱讀(502)
評論(0) 編輯 收藏 所屬分類:
Python