<update id="update" parameterType="java.util.List">
          UPDATE setting 
          SET content = CASE id
              <foreach collection="list" item="setting" >
                  WHEN #{setting.id} THEN #{setting.content}
              </foreach>
          END
          WHERE 
              id in (<foreach collection="list" item="setting" separator="," >
                          #{setting.id}
                      </foreach>
                    )
      </update>

 

相关文章:

  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
相关资源
相似解决方案