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 asc) row_ where 30 >= rownum )
where rownum_ > 0
如上 ,如果c_create_time 有重复的时间,会出现分页错误
解决方案: 增加红色标记部分排序