pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Counting affected rows
2+ messages / 2 participants
[nested] [flat]

* Counting affected rows
@ 2000-07-10 07:51 Przem Kowalczyk <przem@sprintnet.pl>
  2000-07-10 09:36 ` Re: Counting affected rows Holger Klawitter <holger@klawitter.de>
  0 siblings, 1 reply; 2+ messages in thread

From: Przem Kowalczyk @ 2000-07-10 07:51 UTC (permalink / raw)
  To: pgsql-general@postgresql.org

Hi!

How can I count the number of rows affected by UPDATE or DELETE?

Przem




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Counting affected rows
  2000-07-10 07:51 Counting affected rows Przem Kowalczyk <przem@sprintnet.pl>
@ 2000-07-10 09:36 ` Holger Klawitter <holger@klawitter.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Holger Klawitter @ 2000-07-10 09:36 UTC (permalink / raw)
  To: pgsql-general@postgreSQL.org


> 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/




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-07-10 09:36 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-07-10 07:51 Counting affected rows Przem Kowalczyk <przem@sprintnet.pl>
2000-07-10 09:36 ` Holger Klawitter <holger@klawitter.de>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox