使用mybatis的时候,特殊字符,例如,<>,.....
需使用以下进行转义
<
<
小于号
>
>
大于号
&
&
与
'
'
单引号
"
"
双引号
SELECT temp.*,r.* from (
SELECT a.* from appinfo as a where 1=1
and a.appid=#{appid,jdbcType=VARCHAR}
and a.productid=#{productid,jdbcType=INTEGER}
ORDER BY a.lastupdatetime DESC
(这里就是类似的)
LIMIT ${limitStart} , ${limit}
LIMIT ${limit}
) temp,redisdb r where temp.appid = r.appid
标签:temp,转义,limit,SELECT,appid,mybatis,LIMIT,特殊字符
来源: https://www.cnblogs.com/But-you/p/10723356.html