org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; Select statements cannot be executed as an update.; nested exception is java.sql.SQLException: Select statements cannot be executed as an update.


<select id="deleteClubImage" parameterClass="map">
  DELETE
  FROM CLUB_IMAGE
  WHERE   IMAGE_TYPE = #imageType#
      AND CATEGORY_ID = #categoryId#
      AND SEQUENCE    = #sequence#
 </select>



DELETE문을 selet 태그로 묶었기 때문에 에러가 발생

select 태그로 묶게 되면 delete라든가 update같은 것들은 실행 못함.

result-map등을 필요로 하므로..
작업노트/Error Handling l 2008. 7. 7. 11:36

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

카테고리

분류 전체보기 (117)
작업노트 (98)
거미줄세상 (12)
쌓기 (1)
책읽기 (0)
Reviews (4)

달력

«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
get rsstistory! Tistory Tistory 가입하기!