SQL Server 存储过程的分页方案比拼[4]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 applebbs 的 blog

ningindicators/none.gif" align="top" alt=""/>         from testtable
 39         order by id))
 40order by id
 41
 42
 43select top 页大小 *
 44from testtable
 45where (id not in
 46          (select top 页大小*页数 id
 47         from 表
 48         order by id))
 49order by id
 50
 51-------------------------------------
 52
 53分页方案二:(利用id大于多少和select top分页)
 54

本文关键:SQL Server 存储过程的分页方案比拼
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top