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 peppler dot org>
Subject: Re: ct-library rowcount
Date: Mar 10 2004 9:31PM

On Wed, 2004-03-10 at 13:16, Steve Wechsler wrote:
> With ct_execute(), how can I get the number of rows affected by an
> insert/update/delete query? Or is that a feature available only to
> ct_sql()?

$rows = $dbh->ct_res_info(CS_ROW_COUNT);

It will only be valid after any rows from that result set have been
fetched.

Michael
-- 
Michael Peppler                              Data Migrations, Inc.
mpeppler@peppler.org                       http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or 
long term contract positions - http://www.peppler.org/resume.html