dimanche 29 mars 2015

how to generate codes for input excel table 's field

I have many colum in my excel table and I would like to generate code for my to input to python. my sentence is:



cur.execute("INSERT INTO router VALUES ('x','y','z')")




X,Y,Z is the parameter of my 3 fields in my table


As I cant find any method to generate sentence? Is it work if I am using excel to generate sentence? If yes , could u provide some info or answer to me? Thank you!


Aucun commentaire:

Enregistrer un commentaire