From: Dorian Tessore <d.tessore@louise.it>
To: pgsql-interfaces@postgresql.org
Subject: Number of deleted rows in Python module
Date: Wed, 2 Oct 2002 14:59:27 +0200
Message-ID: <20021002125847.051F94758F1@postgresql.org> (raw)
Hi every body,
It's the first time that I post to this list, so please excuse me if the
question is not in the right list.
My SW: Python 1.5.2; pgsql/v7.1.3; RedHat 7.2
My question:
Is there a way of knowing how many rows have been deleted or updated when
sending a query from a python script to pgsql.
Normally I use :
db = pg.connect( ...)
res=db.query("delete from mytable")
But now I don't know how many rows have been deleted.
(The function res.ntuples() works only for a select statement)
Can anybody help me?
Thank you
Dorian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: d.tessore@louise.it
Subject: Re: Number of deleted rows in Python module
In-Reply-To: <20021002125847.051F94758F1@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox