MyBatis常见问题
2020-06-11 本文已影响0人
KevinL水杉
不允许出现<号,要用转义符代替
< 等于 <
> 等于 >
update activity set `status` = 1 where end_time < NOW();
上边语句等于
update activity set `status` = 1 where end_time < NOW();
like %拼接
LIKE concat('%',#{name},'%')