hive:某張表進行分頁


已知表myobject(objectid int)

create table myobject(objectid int) row format delimited fields terminated by ',' stored as textfile;

按照objectid進行分頁,其中objectid在表myobject中是唯一的(不重復)數據。

對表myobject進行分頁

select t11.* from 
(
select row_number() over (order by t10.objectid) as rnum ,t10.* 
from myobject t10
)t11 
where t11.rnum between 1 and 50;

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM