已知表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;

 

相关文章:

  • 2021-09-20
  • 2022-12-23
  • 2021-05-13
  • 2021-11-17
  • 2021-09-20
  • 2022-12-23
  • 2021-07-14
  • 2021-09-08
猜你喜欢
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2021-06-21
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
相关资源
相似解决方案