这几天在学SSM框架,今天在SSM框架中根据某个条件查询MySQL数据库中的记录条数,碰到一些问题,记录一下User.xml<select id="userNameValidate" parameterType="Strin
这几天在学SSM框架,今天在SSM框架中根据某个条件查询MySQL数据库中的记录条数,碰到一些问题,记录一下
User.xml
<select id="userNameValidate" parameterType="String" resultType="Integer"> select count(*) from user where username like #{value} </select> <select id="nickNameValidate" parameterType="String" resultType="Integer"> select count(*) from user where nickname like #{value} </select>
--结束END--
本文标题: Mybatis查询记录条数的实例代码
本文链接: https://www.lsjlt.com/news/224128.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0