Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

python sqlite3 prepared statement

values_to_insert = [(1,"foo"), (2, "bar"), (3, "baz")]

cursor.executemany("""
    INSERT INTO some_table ('item_num', 'item_name')
    VALUES (?, ?)""", values_to_insert)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #prepared #statement
ADD COMMENT
Topic
Name
2+3 =