ibatis配置mysql的limit
时间:2014-07-10 14:14:08
收藏:0
阅读:217
<select id="xxx" > select * from xxx <dynamic prepend = "limit " > <isNotEqual property="num" compareValue="0" > 0,#num# </isNotEqual> </dynamic> </select>
或者
<select id="xxx"> select * from xxx <dynamic prepend="limit"> <isNotNull property="rowStart"> <isNotNull property="pageSize"> #rowStart#, #pageSize# </isNotNull> </isNotNull> </dynamic> </select>
评论(0)