前端之家收集整理的这篇文章主要介绍了
oracle分页在ibatis中配置代码块,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
<sql id="paginationStart">
<dynamic>
<isNotEqual property="pagination" compareValue="false">
<![CDATA[ select * from (select row_.*,rownum rownum_ from ( ]]>
</isNotEqual>
</dynamic>
</sql>
<sql id="paginationEnd">
<dynamic>
<isNotEqual property="pagination" compareValue="false">
<![CDATA[ ) row_ where rownum <= #end#) where rownum_ > #start# ]]>
</isNotEqual>
</dynamic>
</sql>
<sql id="orderBy">
<isNotEmpty property="sort">
<![CDATA[ ORDER BY $sort$ $dir$ ]]>
</isNotEmpty>
</sql>
原文链接:https://www.f2er.com/oracle/213868.html