如果mybatis的sql語(yǔ)句中包含一些符號(hào)比如%的時(shí)候涮坐,我們?cè)诰帉懙臅r(shí)候需要使用如下方式進(jìn)行編寫
select * from table where id = #{id} and name like "%" #{name,jdbcType = VARCHAR}
如果mybatis的sql語(yǔ)句中包含一些符號(hào)比如%的時(shí)候涮坐,我們?cè)诰帉懙臅r(shí)候需要使用如下方式進(jìn)行編寫
select * from table where id = #{id} and name like "%" #{name,jdbcType = VARCHAR}