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

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

本文简介:选择自 applebbs 的 blog

000ff">select max(id)
 69         from (select top 页大小*页数 id
 70                 from 表
 71                 order by id) as t))
 72order by id
 73
 74
 75-------------------------------------
 76
 77分页方案三:(利用sql的游标存储过程分页)
 78create  procedure xiaozhengge
 79@sqlstr nvarchar(4000), --查询字符串
 80@currentpage int--第n页
 81@pagesize int --每页行数
 82

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

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

go top