Is there a way to pass a list such as
PersNr_List = ['00001', '00002','00003']
into the first column of an SQLite table, in this case called 'PersNr'? I can SELECT from a column, but can I also pass into a specific column?
Sorry if that's confusing. Right now I just want to achieve this:
PersNr columnName1 columnName2 .....
00001
00002
00003
00004
I tried looping but couldn't make it work:
PersNr_List = ['00001', '00002','00003']
for x in PersNr_List:
cursor.executemany('INSERT INTO payroll_details VALUES (?)', PersNr_List)
Thanks so much for any help!