mybatis中的一个OOXX

mybatis :

mybatis XML中执行多条语句:
<update id="dao-bs_cc_o_stk_sq_item.update.zlljg" parameterType="hashmap">
begin update bs_cc_store_info t set t.cc_jgzt=3 where t.kbh=#{kbh};
update bs_cc_store_info t set t.bs_lock_status=0,t.bs_kb_status=0,t.bs_lock_ldd=1 where t.kbh=#{kbh};
end;
</update>


在ibatis配置文件写SQL语句的时候对于一些比如“<”,">","<>","&"," ' "," " "是不能够识别的,并且会抛异常。

一般可以如下改写:
< <
> >
<> <>
& &
&apos; '
" "
-------------------


---------------------2011.11.11下午 5点添加----------------------------
源码解读Mybatis List列表In查询实现的注意事项:
http://www.blogjava.net/xmatthew/archive/2011/08/31/355879.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值