首页 > 数据库技术 > 详细

数据库分页

时间:2016-03-07 11:44:21      阅读:276      评论:0      收藏:0      [点我收藏+]
if(object_id(proc_getStudentPage,P) is not null)
    drop proc proc_getStudentPage
go
    create proc proc_getStudentPage(@startindex int,@endindex int)
as
    select count(*) from RealPZGL_D
    select * from (
        select row_number() over(order by id) as rowid ,* from RealPZGL_D 
    ) temp
where temp.rowid between @startindex and @endindex
go

 

数据库分页

原文:http://www.cnblogs.com/lushousong/p/5249873.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!