[cx-oracle-users] insert/update/delete returning state
Brought to you by:
atuining
From: Jose S. <jos...@al...> - 2013-03-12 10:03:54
|
Hi all, I'm trying to returning UPDATE/INSERT/DELETE state. Is there a way to know the state of an UPDATE, for example, if it fails or success, like in the following example? import cx_Oracle DBURI = "sfa/5Y@16.3:1521/em" connection = cx_Oracle.connect(DBURI) cursor = connection.cursor() success = cursor.execute("UPDATE TEST set id=17 where id=16") print success thanks for any help. j |