mybatis 符号处理
符号 | mybatis 转义字符 |
---|---|
" | " |
& | & |
< | < |
> | > |
还可以用 <![CDATA[ ]]> 表示
<!-- where age >= 18 -->
select * from t_user where age >= 18;
select * from t_user where age <![CDATA[>=]]> 18;
符号 | mybatis 转义字符 |
---|---|
" | " |
& | & |
< | < |
> | > |
还可以用 <![CDATA[ ]]> 表示
<!-- where age >= 18 -->
select * from t_user where age >= 18;
select * from t_user where age <![CDATA[>=]]> 18;