From 9caf65e2def4f1afd84cc52eae1a734c1636eb9f Mon Sep 17 00:00:00 2001 From: kannes Date: Wed, 16 Jan 2019 15:57:23 +0100 Subject: [PATCH] add executemany example with emphasis on single values --- doc/src/cursor.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/src/cursor.rst b/doc/src/cursor.rst index 1d7098f2..e0580c76 100644 --- a/doc/src/cursor.rst +++ b/doc/src/cursor.rst @@ -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