posts - 431,  comments - 344,  trackbacks - 0

#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 周锐 阅读(483) 评论(0)  编辑  收藏 所属分类: Python

只有注册用户登录后才能发表评论。


网站导航: