Search
 
SCRIPT & CODE EXAMPLE
 

SQL

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

PREVIOUS NEXT
Code Example
Sql :: table values functions in SQL 
Sql :: how to query all tables mysql at the same time 
Sql :: OFFSET consulta mysql 
Sql :: PostgreSQL random boolean for generate test values 
Sql :: best practive to pass multiple table to stored procedure in sql server 
Sql :: sql filter rows with condition 
Sql :: Aktor yang pernah terlibat di film bergenre Aksi di sql 
Sql :: python mysqlclient library not found for -lssl 
Sql :: 10 random questions use python and SQL 
Sql :: sql select upcoming birthdays 
Sql :: script all indexes in a database 
Sql :: sql joins explained 
Sql :: Rows, INSERT INTO 
Sql :: psql database does not exist 
Sql :: how to run sql query in mysql workbench 
Sql :: condition in orderby mysql 
Sql :: bulk insert sql query syntax 
Sql :: How to Remove milliseconds from Date time 
Sql :: retornar apenas o ano mysql date 
Csharp :: reload scene unity 
Csharp :: get appdata file path c# 
Csharp :: visual studio c# print to console 
Csharp :: check version of asp.net core 
Csharp :: object spin unity 
Csharp :: save file with unique name c# 
Csharp :: c sharp list of strings 
Csharp :: how to disable a gameObject unity c# 
Csharp :: Publishing A Single EXE File In.NET Core 
Csharp :: core Request.CreateResponse 
Csharp :: cannot convert string to long c# 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =