带有参数的视图

  create function fn_fenye
  (@count as int,@page as int) returns table
  as
  return
  select * from (select row_number() over (order by id)as num,* from dbo.Scores) as tableA
  where tableA.num between @count*(@page-1)+1 and @count*@page
 
  select * from fn_fenye(3,2)

  sql-表值函数tvfsql-表值函数tvf

sql-表值函数tvf

相关文章:

  • 2022-12-23
  • 2022-01-04
  • 2022-02-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-04
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
相关资源
相似解决方案