1. 首页
  2. 编程语言
  3. C#
  4. 分页存储过程

分页存储过程

上传者: 2019-03-10 05:32:22上传 TXT文件 312B 热度 41次
alter proc usp_Fen @yema int, @tiaoshu int, @count int output as begin set @count=(select COUNT(*) from MyStudent) select top (@tiaoshu) * from (select *,ROW_NUMBER() over(order by fid asc ) as rownum from MyStudent ) as t where t.rownum between @tiaoshu*(@yema-1)+1 and @tiaoshu*@yema
用户评论