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: displaying limited number of rows
Date: Mar 22 2001 11:42PM

AGaneshalingam writes:
 > I'm trying to display ( on the web) 50 rows from a table that has almost
 > 10,000 rows of data....Is this possible with CT-Lib using SybPerl. Please
 > help me.

$dbh->ct_sql("set rowcount 50");

or

$dbh->ct_options(&CS_SET, CS_OPT_ROWCOUNT, 50, CS_INT_TYPE);

will limit the number of rows fetched to the first 50.

Michael
-- 
Michael Peppler - Data Migrations Inc. - mpeppler@peppler.org
http://www.mbay.net/~mpeppler - mpeppler@mbay.net
International Sybase User Group - http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com