I can't seem to get executemany to work. I didn't get any errors. But no values got inserted either. The following is a small example: the table prices already has some columns and 3 rows. I added a new column t and inserted the values in vals into t.
vals = [(1,), (2,), (3,)]
cursor.execute('ALTER TABLE prices ADD COLUMN t REAL') #"
cursor.executemany("INSERT INTO TABLE prices(t) VALUES(?)", vals)
data = cursor.execute("SELECT id, t FROM prices")
for i in data:
print i
I get
(1, None)
(2, None)
(3, None)
insertseems to be incorrect. Please copy-paste a short, complete program that demonstrates the error See minimal reproducible example for more info.