mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-01 19:00:09 +03:00
add executemany example with emphasis on single values
This commit is contained in:
parent
4a41c9a8cc
commit
9caf65e2de
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user