如何分页统计

2025-04-07 18:34:31
推荐回答(1个)
回答1:

select TOP 20 * from table

是显示前20行,相当于分页 如果要统计,只要嵌套一下就行了
select sum(price) as total_price from (
select TOP 20 * from table【里面是你自己分页的查询语句】
) x;