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
|