<![CDATA[ select * from person t where t.birthday < #{birthday} ]]>
也可以进行转义:
< | < | 小于号 |
> | > | 大于号 |
& | & | 和 |
' | ’ | 单引号 |
" | " | 双引号 |
参见:http://blog.csdn.net/zheng0518/article/details/10449549
<![CDATA[ select * from person t where t.birthday < #{birthday} ]]>
也可以进行转义:
< | < | 小于号 |
> | > | 大于号 |
& | & | 和 |
' | ’ | 单引号 |
" | " | 双引号 |
参见:http://blog.csdn.net/zheng0518/article/details/10449549