mysql - Best way to implement paging in queries -


i know best way implement paging in queries.

currently, doing this:

select   columns   (select columns table order column)   rownum between start , end 

is best way go it?

yes, that's best way know far. if working sql server, may combine row_number , cte together. take @ http://www.sqlteam.com/article/server-side-paging-using-sql-server-2005

and mysql

select myfield sometable limit [offset], [pagesize] 

of course should replace [offset] , pagesize appropriate values.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -