Re: [PHP-DB] LIMIT in MS SQL

2001-03-12 Thread Manuel Lemos
Hello. Fredrik Wahlberg wrote: > > Is there any equivalent to MySQL's ?LIMIT x,y? in Microsoft SQL-Server? You need to use server side cursors. You may want to look at how Metabase, the PHP database abstraction package does it when using MS-SQL. For Metabase users, it is as simple as calling th

Re: [PHP-DB] LIMIT in MS SQL

2001-03-12 Thread Fredrik Wahlberg
But with TOP I can't start on any row I want? I would like to be able to select rows 40 through 60 or something similar. /F >>>>>>>>>>>>>>>>>> Ursprungligt meddelande <<<<<<<<<<<<<<<<&

Re: [PHP-DB] LIMIT in MS SQL

2001-03-12 Thread Trey Sheldon
Yep there is- its called TOP Example: SELECT TOP 2 * FROM Table Fredrik Wahlberg wrote: > Is there any equivalent to MySQL's ?LIMIT x,y? in Microsoft SQL-Server? > > /Fredrik > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional

Re: [PHP-DB] LIMIT in MS SQL

2001-03-12 Thread Miles Thompson
I think so, but check the SS lang manual. It should be under the syntax for SELECT, maybe it's called "TOP". Haven't worked with SS for a while. MIles At 02:24 PM 3/12/01 +, Fredrik Wahlberg wrote: >Is there any equivalent to MySQL's "LIMIT x,y" in Microsoft SQL-Server? > >/Fredrik > >-- >PH