Re: Counting affected rows - Mailing list pgsql-general

From Holger Klawitter
Subject Re: Counting affected rows
Date
Msg-id 39699913.E60BE09C@klawitter.de
Whole thread Raw
In response to Counting affected rows  ("Przem Kowalczyk" <przem@sprintnet.pl>)
List 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 by date:

Previous
From: Gabriel López Millán
Date:
Subject: binary data ...
Next
From: Gabriel López Millán
Date:
Subject: JDBC and LOB