MyBatis SQLMapper分页 博客分类: MyBatis SQLMybatis分页
程序员文章站
2024-02-16 15:19:10
...
Mybatis 分页
<select id="queryByDealInput" parameterType="Map" resultType="Map">
SELECT * FROM
(
SELECT A.* , ROWNUM RN
FROM (select
<include refid="tradeColumnSql"/>,
<include refid="projectColumnSql"/>
FROM TRZ_PROJECT P LEFT OUTER JOIN TRZ_TRADE T ON P.PROJECTID=T.PROJECTID) A
<where>
ROWNUM <=${rows}
</where>
)
<where>
RN>=${firstRowIndex}
</where>
</select>
=======
>= 可写成 >
<= 可写成 <
不写< xml解析可能会报错