MyBatis中字符串拼接实现模糊查询的sql

//使用concat进行字符串拼接前缀% 和后缀%,实现模糊查询,会解决sqL注入的问题
like CONCAT('%',#{stockCode},'%')

 

posted @ 2018-02-26 10:24  lszan  阅读(4283)  评论(0编辑  收藏  举报