From: Michael Fuhr <mike@fuhr.org>
To: jing han <jing_han_66@yahoo.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: How to retrieve how many rows are affected after doing an INSERT statement
Date: Tue, 12 Apr 2005 09:56:40 -0600
Message-ID: <20050412155639.GA90146@winnie.fuhr.org> (raw)
In-Reply-To: <20050412154124.83434.qmail@web53502.mail.yahoo.com>
References: <20050412154124.83434.qmail@web53502.mail.yahoo.com>
On Tue, Apr 12, 2005 at 08:41:24AM -0700, jing han wrote:
>
> Is there a way to retriever from $dbh how many rows
> are affected after doing an insert statement, and how
> to present this?
See the DBI documentation (e.g., "perldoc DBI") and search for
"rows" or "number of rows".
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
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-interfaces@postgresql.org
Cc: mike@fuhr.org, jing_han_66@yahoo.com
Subject: Re: How to retrieve how many rows are affected after doing an INSERT statement
In-Reply-To: <20050412155639.GA90146@winnie.fuhr.org>
* 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