Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group