使用python删除无限时间的oracle表查询

时间:2018-09-20 07:38:09

标签: database python-3.x oracle11g

这是我的代码:

my_dsn_tns= cx_Oracle.makedsn('xyz', 1521, sid = 'SAMPLE')
connection =cx_Oracle.connect(user='username',password='pass', dsn=my_dsn_tns)
cur = connection.cursor()
cur.execute("delete from SPS_CX_ONHAND_QTY")

我正在使用python删除oracle表中的所有记录,但是此代码未显示任何结果或任何错误。我跑的时候,它只是无限循环。我不知道问题到底在哪里。

0 个答案:

没有答案