Yussi Ariefiyono
SELECT next, last row or “LIMIT-command” in MSSQL
SELECT previous row or "LIMIT-command" in MSSQL
SELECT TOP (1) FROM table_name WHERE (ID< @ID)
ORDER BY ID DESC
SELECT next row or "LIMIT-command" in MSSQL
SELECT TOP (1) FROM table_name WHERE (ID> @ID)
ORDER BY ID
Thank also for the descussion
| Print article | This entry was posted by yussi ariefiyono on May 26, 2009 at 4:07 pm, and is filed under sql. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |