Skip to content Skip to sidebar Skip to footer

Sqlite Python Does Not Update Table

I have the following code: import sqlite3 con = sqlite3.connect('testDB') cur = con.cursor() #cur.execute('CREATE TABLE test_table (id integer primary key, data text)') cur.execu

Solution 1:

# Save (commit) the changes
con.commit()

Solution 2:

Did you try commiting after the insert clause?


Post a Comment for "Sqlite Python Does Not Update Table"