myabtis >= <=转义
时间: 2023-09-23 15:07:53 浏览: 191
mybatis 注解
在Mybatis中,如果要实现">="和"<="这样的转义,可以使用<![CDATA[ ]]>标记或转义字符。方法一是使用<![CDATA[ ]]>标记将整个语句包裹起来,例如<select id="select" resultMap="user"> select * from user where age <![CDATA[ > ]]> 18 </select>。方法二是使用转义字符,例如<select id="select" resultMap="user"> select * from user where age &gt;= 18 </select>。注意,转义字符需要在符号后面添加英文分号。
所以,myabtis >= <= 的转义可以使用方法二中的转义字符表示。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [Mybatis 的特殊字符转义](https://blog.csdn.net/qq_39249094/article/details/112874919)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Mybatis 中的<![CDATA[ ]]>浅析](https://download.csdn.net/download/weixin_38746701/12772005)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文