select *
from
(
SELECT rownum row_num,serial_number,staff_name
FROM cyy.wq_all2sell_usd
)
where row_num>1000 and row_num<1005;
这样就可以统计在指定的行数范围内的记录
本文介绍了一种使用SQL从特定范围的行数中选择记录的方法。通过一个具体的例子展示了如何利用ROWNUM筛选出1001到1004行的数据。
select *
from
(
SELECT rownum row_num,serial_number,staff_name
FROM cyy.wq_all2sell_usd
)
where row_num>1000 and row_num<1005;
这样就可以统计在指定的行数范围内的记录

被折叠的 条评论
为什么被折叠?