Answers for "mybatis batch update oracle"

SQL
0

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>
Posted by: Guest on April-21-2022

Code answers related to "SQL"

Browse Popular Code Answers by Language