mybatis batch update oracle
<code class="hljs tcl" style=""><<span class="hljs-keyword" style="">update</span> id=<span class="hljs-string" style="">"batchUpdate"</span> parameterType=<span class="hljs-string" style="">"java.util.List"</span>>
<<span class="hljs-keyword" style="">foreach</span> collection=<span class="hljs-string" style="">"list"</span> item=<span class="hljs-string" style="">"item"</span> index=<span class="hljs-string" style="">"index"</span>
open="begin" close="end;" separator=<span class="hljs-string" style="">";"</span>>
<span class="hljs-keyword" style="">update</span> test
<<span class="hljs-keyword" style="">set</span>>
test=${item.test}+<span class="hljs-number" style="">1</span>
</<span class="hljs-keyword" style="">set</span>>
where id = ${item.id}
</<span class="hljs-keyword" style="">foreach</span>>
</<span class="hljs-keyword" style="">update</span>></code>