Ejemplo 1: sql omite la primera fila
SELECT * FROM table WHERE something = 'whatever' LIMIT 10 OFFSET 1;
Ejemplo 2: ms sql skip take
SELECT col1, col2, ...
FROM ...
WHERE ...
ORDER BY -- this is a MUST there must be ORDER BY statement
-- the paging comes here
OFFSET 10 ROWS -- skip 10 rows
FETCH NEXT 10 ROWS ONLY; -- take 10 rows
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)