SQLServer 存储过程
时间:2017-06-18 19:46:42
收藏:0
阅读:275
craete proc GetPage( @pageIndex int, @pageSize int, @pageCount int output, @RecordCount int output ) as begin set @RecordCount= select count(*) form emp set @pageCount =celling((@RecordCount*0.1)/@pageSize) select * from ( select *, row_number over(order by id) as rows) as t where rows between (@pageIndex-1)*@pageSize and pageIndex*pageSize end
原文:http://www.cnblogs.com/WJ--NET/p/7045017.html
评论(0)