I am trying to insert my data into my ms access sql connection. How do I write an insert statement where I do not have to input all the column names and "?" values.
For example from https://code.google.com/p/pyodbc/wiki/Cursor :
Executes the same SQL statement for each set of parameters. seq_of_parameters is a sequence of sequences.
params = [ ('A', 1), ('B', 2) ]
executemany("insert into t(name, id) values (?, ?)", params)
This will execute the SQL statement twice, once with ('A', 1) and once with ('B', 2).
I have a table with 22+ columns and i do not want to write "t(names,id,..etc)" and "values (?,?,...,?). I just want to be able to throw in my parameters without doing that. Any suggestions?