不允许出现<号,要用转义符代替
< 等于 <
> 等于 >
update activity set `status` = 1 where end_time < NOW();
上边语句等于
update activity set `status` = 1 where end_time < NOW();
like %拼接
LIKE concat('%',#{name},'%')
< 等于 <
> 等于 >
update activity set `status` = 1 where end_time < NOW();
上边语句等于
update activity set `status` = 1 where end_time < NOW();
LIKE concat('%',#{name},'%')
本文标题:MyBatis常见问题
本文链接:https://www.haomeiwen.com/subject/mjrbtktx.html
网友评论