From: gu.martinm@gmail.com Date: Wed, 4 Mar 2015 10:58:41 +0000 (+0100) Subject: Pseudo batch update with CASE should work on any data base. X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=feac983565c42f87f8fa57a9f8d729d4ccd286c3;p=JavaForFun Pseudo batch update with CASE should work on any data base. --- diff --git a/MyBatis/MyBatis-Spring/src/main/resources/de/example/mybatis/repository/mapper/AdCustomMapper.xml b/MyBatis/MyBatis-Spring/src/main/resources/de/example/mybatis/repository/mapper/AdCustomMapper.xml index b51bd4a..6ad3b3f 100644 --- a/MyBatis/MyBatis-Spring/src/main/resources/de/example/mybatis/repository/mapper/AdCustomMapper.xml +++ b/MyBatis/MyBatis-Spring/src/main/resources/de/example/mybatis/repository/mapper/AdCustomMapper.xml @@ -20,7 +20,8 @@ - + + UPDATE ad SET company_id = CASE id