sql2005分页SQLCREATE PROCEDURE [dbo].[GetUsers] --得到用户列表,注意这里的参数
sql2005分页SQL
    @RowIndex int,
sql2005分页SQL    
@RecordCount int
sql2005分页SQL
AS
sql2005分页SQL
BEGIN
sql2005分页SQL    
SET NOCOUNT ON;
sql2005分页SQL
sql2005分页SQL    
With VUsers as (
sql2005分页SQL        
select *,row_number() over (order by UserID descas RowNum
sql2005分页SQL        
from MyUsers 
sql2005分页SQL)
sql2005分页SQL
sql2005分页SQL    
select * from VUsers 
sql2005分页SQL    
where RowNum > @RowIndex and RowNum <= (@RowIndex+@RecordCount)    
sql2005分页SQL
END
sql2005分页SQL
sql2005分页SQL
CREATE PROCEDURE [dbo].[GetUsersCount]    
sql2005分页SQL
AS
sql2005分页SQL
BEGIN
sql2005分页SQL    
SET NOCOUNT ON;
sql2005分页SQL    
select count(UserID) from MyUsers
sql2005分页SQL
END

相关文章:

  • 2022-02-04
  • 2022-02-19
  • 2022-01-04
  • 2021-06-01
  • 2021-11-12
  • 2021-12-05
  • 2022-02-23
  • 2022-12-23
猜你喜欢
  • 2022-01-11
  • 2022-12-23
  • 2021-10-17
  • 2021-09-02
  • 2021-08-23
  • 2021-10-28
  • 2022-02-28
相关资源
相似解决方案