When we use PostgreSQL with Perl, we can retrieve
Error messages from database handler, say, if my
database handler is presented as $dbh, then I use
$dbh->errstr() can get error message like:
ERROR: Cannot insert a duplicate key into unique index
Is there a way to retriever from $dbh how many rows
are affected after doing an insert statement, and how
to present this?
I tried $dbh->rowcount(), it doesn't work, So what's
the exact expression?
Any help will be appreciated.
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
pgsql-interfaces by date
|Next:||From: Michael Fuhr||Date: 2005-04-12 15:56:40|
|Subject: Re: How to retrieve how many rows are affected after doing an INSERT statement|
|Previous:||From: mps||Date: 2005-04-11 22:34:39|
|Subject: Re: pg.py under Mac OS X|