Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db = ...
- cursor = ...
- try:
- cursor.execute(...)
- cursor.commit()
- wx.MessageBox("Insertado OK")
- except cx_Oracle.IntegrityError:
- wx.MessageBox("Ya existe")
- finally:
- cursor.close()
- db.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement