Number of deleted rows in Python module

From: Dorian Tessore <d(dot)tessore(at)louise(dot)it>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Number of deleted rows in Python module
Date: 2002-10-02 12:59:27
Message-ID: 20021002125847.051F94758F1@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message William Ahern 2002-10-03 19:36:30 FileMaker on MacOSX
Previous Message Marcos Luiz Onisto 2002-10-02 09:51:17 Unsubscribe