Skip to content Skip to sidebar Skip to footer

Mysqldb Executemany Using A List As Input?

I am wanting to use an executemany within my program to store 20 records at once, heres what it says in the documentation... c.executemany( '''INSERT INTO breakfast (name, spam,

Solution 1:

params = [(str(keywords[i]), date, time, position[i]) for i in range(20)]

Post a Comment for "Mysqldb Executemany Using A List As Input?"