PreparedStatement updatestmt1 = con.prepareStatement("update BASE_TX set tx_vl=replace(tx_vl,?,?)");
updatestmt1.setString(1, "${parm:"+ stringToreplace.trim() +"}");
updatestmt1.setString(2, "${parm:" + replacedString.trim() + "}");
int ifUpdated1 = updatestmt1.executeUpdate();
ifUpdated1은 실행중인 경우 영향을받지 않는 행 수가 아닌 14480을 반환합니다. 따라서 실제로 업데이트되거나 업데이트되지 않으면 전화를 걸 수 없습니다.executeUpdate 영향을받는 행이 아닌 행의 수를 반환합니다.
네, 그게해야 할 일입니다. 당신이 뭔가 다른 것을 세길 원한다면'where' 절을 추가 할 필요가 있습니다. –