mybatis查询到count(*)返回值

resultType="int"

<select id="num_List_" parameterType=" xxx" resultType="int">
    SELECT COUNT(*)
    FROM `tablename`
    WHERE num&lt;#{endNum} AND num&gt;#{startNum}
</select>

posted @ 2018-10-25 15:47  慧妃不美  阅读(1108)  评论(0编辑  收藏  举报