sql server - How to implement paging mechanism in generic way for SQL standards? -


in project, have implemented paging mechanism sql server, per our requirement, trying implement paging mechanism in generic way oracle, sql server, db2 & db400 databases. possible implement paging in such way? can simplest generic way implement such query?

as far know there no generic functionality implement pagining mechanism database.

the syntax implement pagination may change database, hard there genric functionality implement across database.

you can refer there method paging using ansi sql only? accepted answer refers link says use like

select * (   select     row_number() on (order key asc) rownum,     columns   tablename ) foo rownum > skip , rownum <= (n+skip) 

Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -