首页 > 其他 > 详细

Parameter 'name' not found. Available parameters are [arg1, arg0, param1, param2]

时间:2019-02-10 10:23:00      阅读:4047      评论:0      收藏:0      [点我收藏+]

技术分享图片技术分享图片

解决方法:

<select id="selectIf" resultType="student">
SELECT id,name,age,score
FROM t_student
WHERE 1=1
<if test="arg0 != null and arg0 !=‘‘">
AND name LIKE ‘%‘ #{arg0} ‘%‘
</if>
<if test="arg1>=0">
AND age >= #{arg1}
</if>

</select>

出现异常情况:技术分享图片

技术分享图片

技术分享图片

技术分享图片

技术分享图片

如果用where就不用写1=1操作了

技术分享图片

技术分享图片

技术分享图片

 

Parameter 'name' not found. Available parameters are [arg1, arg0, param1, param2]

原文:https://www.cnblogs.com/Koma-vv/p/10358566.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!