美文网首页
MyBatis常见问题

MyBatis常见问题

作者: KevinL水杉 | 来源:发表于2020-06-11 21:25 被阅读0次

不允许出现<号,要用转义符代替

&lt; 等于 <
&gt; 等于 >
update activity set `status` = 1 where end_time &lt; NOW();
上边语句等于
update activity set `status` = 1 where end_time < NOW();

like %拼接

LIKE concat('%',#{name},'%')

相关文章

网友评论

      本文标题:MyBatis常见问题

      本文链接:https://www.haomeiwen.com/subject/mjrbtktx.html