cx_Oracle例子,经典
时间:2007-06-08 来源:wangyb
import cx_Oracle
conn=cx_Oracle.connect ('ylch/youlian@unionmon')
curs=conn.cursor ()
sql='select * from tab'
rr=curs.execute (sql)
for tabname,TNAME,ll in curs.fetchall():
print tabname,TNAME,ll
curs.close()
conn.close()
conn=cx_Oracle.connect ('ylch/youlian@unionmon')
curs=conn.cursor ()
sql='select * from tab'
rr=curs.execute (sql)
for tabname,TNAME,ll in curs.fetchall():
print tabname,TNAME,ll
curs.close()
conn.close()
相关阅读 更多 +