I want to update a column in my SQLite database. I need to a list of values to my column. Tried to search on Stackowerflow and I found an article, from which I got this code:
cur.executemany("""UPDATE Details SET Stock = Stock + ? WHERE %s"""% condition, (i,))
But it didn't work in my case and I got this error:
`sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 20 supplied.`.
I tried different ways to do it, but the best result was to update entire column with last element in my list.