美文网首页
mybatis的sql语句中包含符号的情况

mybatis的sql语句中包含符号的情况

作者: 我要扭开奥利奥 | 来源:发表于2019-07-15 09:42 被阅读0次

    如果mybatis的sql语句中包含一些符号比如%的时候,我们在编写的时候需要使用如下方式进行编写

    select * from table where id = #{id} and name like "%" #{name,jdbcType = VARCHAR}
    

    相关文章

      网友评论

          本文标题:mybatis的sql语句中包含符号的情况

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