ibatis配置mysql的limit

<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>

 

ibatis配置mysql的limit,布布扣,bubuko.com

ibatis配置mysql的limit

上一篇:leveldb开篇


下一篇:MVC项目实践,在三层架构下实现SportsStore-02,DbSession层、BLL层