您的位置:首页 > 移动开发

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语句括起来,如:

<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>

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐