For SQL Server 2011 you can use the enhanced ORDER
BY
clause.

SELECT *

FROM     MyTable

ORDER BY OrderingColumn ASC

OFFSET 
50 ROWS

FETCH NEXT 25 ROWS ONLY



Though
it
remains to be seen how well performing this option will be
.

http://msdn.microsoft.com/en-us/library/ms188385%28SQL.110%29.aspx



SQL clauses

http://db.apache.org/derby/docs/10.5/ref/rrefclauses.html

http://db.apache.org/derby/docs/10.5/ref/rrefclauses.html



http://www.sybase.com/products

http://msdn.microsoft.com/en-us/library/gg699618(v=sql.110).aspx

http://msdn.microsoft.com/en-us/library/ms188385%28SQL.110%29.aspx

EntityFramework之犹豫不决

http://www.cnblogs.com/mecity/archive/2011/07/07/2099598.html



posted on 2011-07-07 14:06  higirle  阅读(1931)  评论(0编辑  收藏  举报