This is a discussion on newbie: Limit rows returned in a select within the Sybase forums, part of the Database Server Software category; --> Is there a way to limit the number of rows returned in a select statement? I thought it was ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| On Thu, 28 Aug 2003 06:42:55 -0700, Alison wrote: > Is there a way to limit the number of rows returned in a select statement? > > I thought it was TOP(5) but that does not work.. Look up the "SET ROWCOUNT xxx" command in the ASE reference manual. Michael -- Michael Peppler Data Migrations, Inc. mpeppler@peppler.org http://www.mbay.net/~mpeppler Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or long term contract positions - http://www.mbay.net/~mpeppler/resume.html |
| ||||
| In article <41a170d2.0308280542.72430ca4@posting.google.com >, alison.craine@atsc.army.mil says... > >Is there a way to limit the number of rows returned in a select statement? > >I thought it was TOP(5) but that does not work.. in ASA it's select top 5 * from table klint. |
| Thread Tools | |
| Display Modes | |
|
|