问题
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