Thanks Lukas. This is very helpful for me.
String sql = "update {0} set {1} = (@x := @x + 1) where {2}={3} and {4}={5} order by {6} desc;"; dsl.batch(dsl.query("SET @x = 0;"), dsl.query(sql, MISSION_USERS, MISSION_USERS.REMAINING, MISSION_USERS.MISSION_ID, DSL.val(missionId), MISSION_USERS.MISSION_PARAMETERS_ID, DSL.val(missionParameterId), MISSION_USERS.EXECUTION)).execute(); -- You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.