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

* Number of rows affected by an update
@ 2003-03-19 04:42 David Witham <davidw@unidial.com.au>
  2003-03-19 08:12 ` Re: Number of rows affected by an update Tomasz Myrta <jasiek@klaster.net>
  0 siblings, 1 reply; 2+ messages in thread

From: David Witham @ 2003-03-19 04:42 UTC (permalink / raw)
  To: pgsql-sql

Hi,

Is there a way of capturing how many rows a select, delete or update affect from within a PL/pgSQL function?

Thanks,

David Witham
Unidial




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

* Re: Number of rows affected by an update
  2003-03-19 04:42 Number of rows affected by an update David Witham <davidw@unidial.com.au>
@ 2003-03-19 08:12 ` Tomasz Myrta <jasiek@klaster.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Tomasz Myrta @ 2003-03-19 08:12 UTC (permalink / raw)
  To: David Witham <davidw@unidial.com.au>; +Cc: pgsql-sql

Uz.ytkownik David Witham napisa?:
> Hi,
> 
> Is there a way of capturing how many rows a select, delete or update affect from within a PL/pgSQL function?
Read Postgres documentation.
19.5.5. Obtaining result status

GET DIAGNOSTICS var_integer = ROW_COUNT;

Regards,
Tomasz Myrta




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


end of thread, other threads:[~2003-03-19 08:12 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-03-19 04:42 Number of rows affected by an update David Witham <davidw@unidial.com.au>
2003-03-19 08:12 ` Tomasz Myrta <jasiek@klaster.net>

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