I need to update multiple rows of a PLSQL table, something like this:
StringBuilder stringBuilder = new StringBuilder(
"UPDATE review_item SET LAST_MODIFIED_TIMESTAMP = systimestamp, ")
.append("target_urn = ?, ")
.append("assignee_urn = NULL WHERE item_id in (")
.append(StringUtils.join(itemIds, ","))
.append(")");
PreparedStatement ps = connection.prepareStatement(stringBuilder.toString());
OracleUtil.bindInput(ps, 1, getRandomUuid(), dbClauses.getQueuePostCleanState());
Issue is - I need all the rows to get updated with a different random guid, in this case it is getting updated with the same one. Any way to do this?