2.MyBatis 使用算术

MyBatis 如何使用算术公式

<select id="selectRank" resultMap="BaseResultMap2">
    select
    student_name, age, gender
    from student
    <if test="page !=null and size !=null">
        limit ${(page - 1) * size}, ${size}
    </if>
</select>

 

posted @ 2021-12-30 21:23  呱呱二号  阅读(276)  评论(0编辑  收藏  举报