Up Prev Next
From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: number of rows?
Date: May 21 1998 2:26PM
H. Siegling writes:
> Hi !
> I'm working with Sybperl 2.09 on NT.
> Is it possible to get the number of rows that '$dbh->dbresult' generated ?
> '$rows=$dbh->DBCOUNT' doesn't work.
It does work if you ran an update/delete/insert operation. It does NOT
work if you did a select. That is the way it's supposed to work. See
the documentation on DBCOUNT() in Sybase's DBlibrary manual
(http://sybooks.sybase.com if you don't have sybooks installed
Michael Peppler -||- Data Migrations Inc.
email@example.com -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com