select * from ( select row_.*, rownum rownum_ from (
select * from upm_role r where 1=1 and i_role_type in(0,1,4) and i_status = 0 and r.i_domain_id=1 order by c_create_time DESC,i_id ascdom
) row_ where 30 >= rownum )
where rownum_ > 0spa
如上 ,若是c_create_time 有重复的时间,会出现分页错误排序
解决方案: 增长红色标记部分排序select