IBatis的Mapper配置文件中使用大于号好小于号 :>和<
2012-03-16 21:00
447 查看
http://www.blogjava.net/george-tech/archive/2010/04/26/319372.html
http://blog.sina.com.cn/s/blog_4550f3ca01010bsl.html
当sql配置文件中的元素select/insert/update中,需要使用大于号>和小于号<时,要使用
<![CDATA[
sql语句
]]>
来将sql语句括起来,如:
http://blog.sina.com.cn/s/blog_4550f3ca01010bsl.html
当sql配置文件中的元素select/insert/update中,需要使用大于号>和小于号<时,要使用
<![CDATA[
sql语句
]]>
来将sql语句括起来,如:
<select id="test_query" parameterType="hashmap" resultType="hashmap"> <![CDATA[ select t.f1,t.f2 from table t where t.f3 <> 1 ]]> <include refid="test_sql_common" /> </select> |
相关文章推荐
- Mybatis IBatis的Mapper配置文件中使用大于号好小于号 :>和<
- ibatis mybatis sql语句配置 符号不兼容 大于号 小于号<!CDATA[ ]>
- Mybatis异常_04_mapper.xml中不能使用小于号<、大于号>
- mybatis在Mapper.xml文件中使用大于,小于时要用 > <
- 如何在sqlmap中使用 大于号> 小于号 <
- spring配置文件中<context:property-placeholder />的使用
- ibatis mybatis sql语句配置 符号不兼容 大于号 小于号<!CDATA[ ]>
- ibatis mybatis sql语句配置 符号不兼容 大于号 小于号<!CDATA[ ]>
- 关于使用注解的Spring配置文件的配置<context:annotation-config/>&&<context:component-scan base-package=”XX.XX”/>
- Spring配置文件中使用ref local与ref bean的区别. 在ApplicationResources.properties文件中,使用<ref bean>与<ref local>方法如下
- android中配置文件property的用途以及使用&lt;转&gt;
- 只有在配置文件或 Page 指令中将 enableSessionState 设置为 true 时,才能使用会话状态。还请确保在应用程序配置的 <configuration>\<system.web>\
- 只有在配置文件或 Page 指令中将 enableSessionState 设置为 true 时,才能使用会话状态。还请确保在应用程序配置的 <configuration>
- Android中View绘制优化二一---- 使用<include />标签复用布局文件
- 关于使用Html <audio>标签播放视频文件的问题
- 无法在此路径使用此配置节。当站点管理员使用继承的配置文件中的 <location allowOverride="false"> 错误处理方法!
- spring配置文件中<context:property-placeholder />的使用
- 使用@Controller注解为什么要配置<mvc:annotation-driven />
- spring配置文件<import>标签中使用${}占位符获得配置文件的属性值
- Spring配置文件<context:property-placeholder>标签使用漫谈