Limit and offset in MySQL and MSSQL

In MySql there is an option fetch only a page of results from a sql query. This is called LIMIT and OFFSET. This is perfect for something like posts in a guestbook.

And this is how you do it in MSSQL

 

Leave a Comment

Your email address will not be published. Required fields are marked *