add executemany example with multiple parameters

This commit is contained in:
kannes 2019-01-16 16:01:03 +01:00
parent 9caf65e2de
commit cf22e65f19

View File

@ -200,6 +200,9 @@ The ``cursor`` class
>>> nums = [[1],[5],[10]]
>>> cur.executemany("INSERT INTO test (num) VALUES (%s)", nums)
>>> tuples = ((123,"foo"), (42,"bar"), (23,"baz"))
>>> cur.executemany("INSERT INTO test (num, data) VALUES (%s, %s)", tuples)
.. warning::
In its current implementation this method is not faster than