Using a Python dict for a SQL INSERT statement

71

sql = "INSERT INTO %s (%s) VALUES(%s)" % (
    table, ",".join(cols), ",".join(vals))

Comments

Submit
0 Comments