pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomasz Myrta <jasiek@klaster.net>
To: David Witham <davidw@unidial.com.au>
Cc: pgsql-sql@postgresql.org
Subject: Re: Number of rows affected by an update
Date: Wed, 19 Mar 2003 09:12:06 +0100
Message-ID: <3E782656.8020404@klaster.net> (raw)
In-Reply-To: <CFA248776934FD43847E740E43C346D1379676@ozimelb03.ozicom.com>
References: <CFA248776934FD43847E740E43C346D1379676@ozimelb03.ozicom.com>

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




view thread (2+ messages)

Message-ID: <3E782656.8020404@klaster.net>
Permalink:  ../3E782656.8020404@klaster.net/
Also on:    postgresql.org/message-id/3E782656.8020404@klaster.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jasiek@klaster.net, davidw@unidial.com.au
  Subject: Re: Number of rows affected by an update
  In-Reply-To: <3E782656.8020404@klaster.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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