I have the following code:
import sqlite3
con = sqlite3.connect("testDB")
cur = con.cursor()
cur.execute('INSERT INTO test_table VALUES (?, ?)', (76, 'MyData'))
when I run this script, it does not update the table. But when I do the same insertion using the sqlite3 command line on Linux, it updates. Why is this the case or is there something I'm doing wrong?
source
share