79760791

Date: 2025-09-10 11:25:52
Score: 0.5
Natty:
Report link

As already stated in the comments by @yotheguitou you have to commit to save the changes made to your SQLite since the last commit.

After you executed a DELETE statement you need to call connection.commit().

cursor.execute("DELETE FROM ticket WHERE ROWID = (SELECT MAX(ROWID) FROM ticket)")

connection.commit()

If you want to automatically commit after any executed statement, set isolation_level=None.

conn = sqlite3.connect("example.db", isolation_level=None)
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @yotheguitou
Posted by: Bending Rodriguez