Re: How to find the number of rows deleted

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: How to find the number of rows deleted
Дата
Msg-id F7423AA4-1583-4BB7-B92B-9E8844E8570D@pgedit.com
обсуждение исходный текст
Ответ на How to find the number of rows deleted  ("Andrus" <eetasoft@online.ee>)
Список pgsql-general
On Jul 18, 2005, at 7:00 AM, Andrus wrote:

> I ran DELETE command from my ODBC client application.
> I want to get the number of rows deleted by this DELETE command.
>
> I read the DELETE command docs but havent found any function.
>
> Any idea ?

I don't use ODBC, but you should get that directly back from the
DELETE command. Is there not a way to get the command return value
with your ODBC driver?

 From the DELETE docs:

Outputs

On successful completion, a DELETE command returns a command tag of
the form

DELETE count
The count is the number of rows deleted. If count is 0, no rows
matched the condition (this is not considered an error).





John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to find the number of rows deleted
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: TRUNCATE locking problem