so i am able to create a new table in my database and harvest all the information from a file to fill all but the last column in the table using cursor, and execute as one would normally do.
the last column of information comes from a different source and is in my code as a list of integers. how would i go about adding this list of integers into my last column?
i've tried various loops and iterations, but i am just missing something (probably quite obvious) in how to phrase it properly.
connection = sqlite3.connect('database.db')
cursor = connection.cursor()
for j in list:
cursor.execute('insert into Table (column) values (?)', j)
connection.commit()
and i get the following error:
Traceback (most recent call last):
File "Homework/Homework7/bam_counting.py", line 157, in <module>
cursor.execute('insert into Genes (counts) values (?)', j)
ValueError: parameters are of unsupported type