Skip to content

Commit

Permalink
使用三层oracle分页查询,from alipay
Browse files Browse the repository at this point in the history
git-svn-id: http://rapid-framework.googlecode.com/svn/trunk/rapid-mvn@6229 4ca5cf0f-1a52-0410-96e1-5992aa8baeaf
  • Loading branch information
badqiu committed Jan 5, 2011
1 parent 701963e commit bfc28ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,15 @@
<#return>
</#if>
<#if databaseType == 'oracle'>
select * from ( select row_.*, rownum rownum_ from (
select * from (select T1.*, rownum linenum from (
</#if>
</#macro>
<#macro genPageQueryEnd sql>
<#if !sql.paging>
<#return>
</#if>
<#if databaseType == 'oracle'>
) row_ ) where rownum_ &lt;= #endRow# and rownum_ >= #startRow#
) T1 where rownum &lt;= #endRow# ) T2 where linenum &gt;= #startRow#
</#if>
<#if databaseType == 'mysql'>
limit #offset#,#limit#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,15 @@ PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
<#return>
</#if>
<#if databaseType == 'oracle'>
select * from ( select row_.*, rownum rownum_ from (
select * from (select T1.*, rownum linenum from (
</#if>
</#macro>
<#macro genPageQueryEnd sql>
<#if !sql.paging>
<#return>
</#if>
<#if databaseType == 'oracle'>
) row_ ) where rownum_ &lt;= #endRow# and rownum_ >= #startRow#
) T1 where rownum &lt;= #endRow# ) T2 where linenum &gt;= #startRow#
</#if>
<#if databaseType == 'mysql'>
limit #offset#,#limit#
Expand Down

0 comments on commit bfc28ca

Please sign in to comment.