Created
April 8, 2017 01:03
-
-
Save jorgevilaca82/074340227bb0608b2186b53ebd90fa15 to your computer and use it in GitHub Desktop.
Páginação SQL Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * FROM Tabela | |
ORDER BY (SELECT NULL) | |
OFFSET 3 ROWS FETCH NEXT 1 ROWS ONLY; | |
-- numero de registros por página | |
declare @PERPAGE int = 1; | |
select ((select count(*) from sala) / @PERPAGE) as QTD_PAG; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment