PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

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
locally).

Michael
-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@datamig.com    -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com