Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

limit sqlserver

/*THIS IS FOR LIMIT*/
SELECT TOP 10 * FROM sometable
/*THIS IS FOR PAGING, ORDER BY IS REQUIRED*/
SELECT  *
FROM     sometable
ORDER BY name
OFFSET  5 ROWS 
FETCH NEXT 5 ROWS ONLY 
 
PREVIOUS NEXT
Tagged: #limit #sqlserver
ADD COMMENT
Topic
Name
7+7 =