Re: How to retrieve how many rows are affected after doing an INSERT statement

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: jing han <jing_han_66(at)yahoo(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: How to retrieve how many rows are affected after doing an INSERT statement
Date: 2005-04-12 15:56:40
Message-ID: 20050412155639.GA90146@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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/

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Greg Sabino Mullane 2005-04-13 02:00:34 Re: How to retrieve how many rows are affected after doing an INSERT statement
Previous Message jing han 2005-04-12 15:41:24 How to retrieve how many rows are affected after doing an INSERT statement