示例:
<select id="existsUser" resultType="Boolean"> SELECT COUNT(*)>0 FROM user WHERE id=#{id} </select>
MyBatis开发经验总结
原文:https://www.cnblogs.com/miaoyinruanjian/p/9323241.html