add executemany example with emphasis on single values

This commit is contained in:
kannes 2019-01-16 15:57:23 +01:00
parent 4a41c9a8cc
commit 9caf65e2de

View File

@ -197,6 +197,9 @@ The ``cursor`` class
Parameters are bounded to the query using the same rules described in
the `~cursor.execute()` method.
>>> nums = [[1],[5],[10]]
>>> cur.executemany("INSERT INTO test (num) VALUES (%s)", nums)
.. warning::
In its current implementation this method is not faster than