delete query for oracle table taking a infinite amount of time using python

烂漫一生 提交于 2019-12-11 17:55:29

问题


This is my piece of code:

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")

I am using python to delete all the records from a oracle table but this code is not showing any results nor any error. The time I hit run, it just goes in an infinite loop. I have no idea what the problem is all about.

来源:https://stackoverflow.com/questions/52419971/delete-query-for-oracle-table-taking-a-infinite-amount-of-time-using-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!