标签:
1.分页SQL
declare @pagesize integer,@cpage integer; --变量定义 set @pagesize =200; --页码大小 set @cpage = 5; --当前页 ---@cpage 为 第一页的时候 --select top (@pagesize) * from Member order by ID desc ---- select top (@pagesize) * from Member where ID not in( select top ((@cpage - 1) * @pagesize) ID from Member order by ID desc ) order by ID desc
标签:
原文地址:http://www.cnblogs.com/rinack/p/4543815.html