|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I'm using PHP and MSSQL and would be very grateful if anyone can tell me how to limit the records displayed to say 25 in each page. Previously I had used PHP and MySQL and used the LIMIT function. I just can't find out how to do this in MSSQL. Any help would be very appreciated. Keith |
|
#2
|
|||
|
|||
|
im not sure if top statement works in mysql but in mssql,
you can do following, SELECT TOP 5 * FROM Users this will select top 5 rows from users table
__________________
Regards, James Yang .NET Developer / Network Engineer MCSE, MCDBA, MCSA, CCNA http://www.yellowpin.com/ http://www.opentechsupport.com/ |
|
#3
|
|||
|
|||
|
Hi, in MSSQL 2005 is new way how to make limit function.
More I describe in my web site www .select-sql.com/mssql/how-to-make-limit-from-to-in-mssql-2005.html |
![]() |
| Viewing: Dev Articles Community Forums > Databases > Microsoft SQL Server > How to limit rows displayed using mssql? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|