aryan

带条件查询语句:Select * From table_name Where condition

然后利用with as TT(查询语句)将结果集设置为表TT

最后通过

declare @page_size int;
declare @page_num int;

--比如:每页10条记录
set @page_size = 10;

--比如:先取第1页
set @page_num = 1;

select *
from
(
select *,

(row_number() over(order by @@servername) - 1) / @page_size as pagenum
from from biao
)t
where pagenum = @page_num - 1 语句实现分页查询。

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2021-11-03
  • 2021-11-13
  • 2021-12-18
  • 2021-11-23
猜你喜欢
  • 2021-09-13
  • 2021-11-13
  • 2021-12-28
  • 2021-11-13
  • 2021-12-28
相关资源
相似解决方案