时间:2021-07-01 10:21:17 帮助过:21人阅读
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
SQLServer 存储过程
标签:for index form sqlserver select sharp between sha count