这里用到了dcoracle2模块:
import DCOracle2
import time
db=DCOracle2.connect("dev/dev@test")
cursor=db.cursor()
while(1):
cursor.execute("select * from test")
d=cursor.fetchone()
id = d[0]
db.commit()
time.sleep(0.1)
使用DCOracle2模块操作Oracle数据库
本文介绍了一个使用Python的DCOracle2模块连接并操作Oracle数据库的例子。具体实现包括建立连接、创建游标、执行SQL查询语句并获取单条记录等基本操作。
1037

被折叠的 条评论
为什么被折叠?



