Re: Counting affected rows

Поиск
Список
Период
Сортировка
От Holger Klawitter
Тема Re: Counting affected rows
Дата
Msg-id 39699913.E60BE09C@klawitter.de
обсуждение исходный текст
Ответ на Counting affected rows  ("Przem Kowalczyk" <przem@sprintnet.pl>)
Список pgsql-general
> How can I count the number of rows affected by UPDATE or DELETE?

This depends on the interface you are using.

* The psql SQL monitor always reports the number of affected rows
  (it's the 2nd number)

* In DBI "do" returns the number of affected rows.

* In JDBC "executeUpdate" does the same. (By the way, is there a way
  to get the number of rows from a executeQuery without counting them?).

Regards,
Mit freundlichem Gruß,
    Holger Klawitter
--
Holger Klawitter                                    +49 (0)251 484 0637
holger@klawitter.de                            http://www.klawitter.de/


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

Предыдущее
От: Gabriel López Millán
Дата:
Сообщение: binary data ...
Следующее
От: Gabriel López Millán
Дата:
Сообщение: JDBC and LOB