Number of deleted rows in Python module

Поиск
Список
Период
Сортировка
От Dorian Tessore
Тема Number of deleted rows in Python module
Дата
Msg-id 20021002125847.051F94758F1@postgresql.org
обсуждение исходный текст
Ответы Re: Number of deleted rows in Python module
Список 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


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: "Vilson farias"
Дата:
Сообщение: Postgres Object Identifiers
Следующее
От: William Ahern
Дата:
Сообщение: FileMaker on MacOSX