Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

Using a Python dict for a SQL INSERT statement

sql = "INSERT INTO %s (%s) VALUES(%s)" % (
    table, ",".join(cols), ",".join(vals))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Using #Python #dict #SQL #INSERT #statement
ADD COMMENT
Topic
Name
7+1 =