
인덱스가 누락 되었다는 오류를 만났다
private static final String UPDATE="UPDATE BOARD SET TITLE =?, CONTENT =? WHERE BID=?";
이처럼 인덱스는 3개인데
pstmt=conn.prepareStatement(UPDATE);
pstmt.setString(1, bDTO.getTitle());
pstmt.setString(2, bDTO.getContent());
int result=pstmt.executeUpdate();
인덱스를 2개만 넣었더니 오류가 발생하였다
그래서 나머지 하나도 넣어서 오류를 해결했다
'Exception' 카테고리의 다른 글
| SQL - ORA-01427: single-row subquery returns more than one row (0) | 2024.01.17 |
|---|---|
| Listener refused the connection with the following error - 연결을 거부 (1) | 2023.12.21 |
| invalid character(잘못된 문자) -sql (0) | 2023.12.20 |
| ConcurrentModificationException 에러(동시 수정) (0) | 2023.12.18 |
| IndexOutOfBoundsException (0) | 2023.12.12 |