Using a Python dict for a SQL INSERT statement code example
Example: Using a Python dict for a SQL INSERT statement
sql = "INSERT INTO %s (%s) VALUES(%s)" % (
table, ",".join(cols), ",".join(vals))
sql = "INSERT INTO %s (%s) VALUES(%s)" % (
table, ",".join(cols), ",".join(vals))