oracle ibatis 分页

<![CDATA[
            select *
                  from (select re.*, rownum rownum_
                  from (select r.role_id, r.role_name, r.role_type, r.flag
                          from mob_bas_role r
                         where r.username = #userName#
                         and r.flag != 9
                         order by r.indate desc) re)
                         where rownum_ between #start# and #end#
         ]]>

你可能感兴趣的:(oracle)