Re: what does $dbh->execute return for a select?
- From: Tim.Bunce@xxxxxxxxx (Tim Bunce)
- Date: Sat, 20 May 2006 00:28:49 +0100
On Fri, May 19, 2006 at 07:24:13PM +0100, Martin J. Evans wrote:
but I'm doing a select * from table and getting back a true value
which is 1. I thought for a successful select, execute would return
0E0 (which is true) but not 1. I was hoping to use true but not
0E0 to identify a non-select statement that affected rows.
You can use $sth->{NUM_OF_FIELDS} to tell if it's a SELECT statement.
Tim.
.
- Follow-Ups:
- Re: what does $dbh->execute return for a select?
- From: Martin J. Evans
- Re: what does $dbh->execute return for a select?
- References:
- what does $dbh->execute return for a select?
- From: Martin J. Evans
- what does $dbh->execute return for a select?
- Prev by Date: what does $dbh->execute return for a select?
- Next by Date: Stored Procedures that return a recordset
- Previous by thread: what does $dbh->execute return for a select?
- Next by thread: Re: what does $dbh->execute return for a select?
- Index(es):
Relevant Pages
|
|