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语句的时候对于一些比如“<”,">","<>","&"," ' "," " "是不能够识别的,并且会抛异常。
一般可以如下改写:
< <
> >
<> <>
& &
' '
" "
-------------------
---------------------2011.11.11下午 5点添加----------------------------
源码解读Mybatis List列表In查询实现的注意事项:
http://www.blogjava.net/xmatthew/archive/2011/08/31/355879.html
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语句的时候对于一些比如“<”,">","<>","&"," ' "," " "是不能够识别的,并且会抛异常。
一般可以如下改写:
< <
> >
<> <>
& &
' '
" "
-------------------
---------------------2011.11.11下午 5点添加----------------------------
源码解读Mybatis List列表In查询实现的注意事项:
http://www.blogjava.net/xmatthew/archive/2011/08/31/355879.html