티스토리 뷰
마이바티스 이용시 insert into select를 하면
"; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00933: SQL 명령어가 올바르게 종료되지 않았습니다
"
00933에러를 보게된다.
<insert id="testSql" parameterType="map">
INSERT INTO table_name
(test)
(select test from test)
</insert>
<update id="testSql" parameterType="map">
INSERT INTO table_name
(test)
(select test from test)
</update>
insert를 update로 바꿔 주면 된다.
출처: https://blog.fast87.com/132 [하늘과 바람과 별과 코드]
"; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00933: SQL 명령어가 올바르게 종료되지 않았습니다
"
00933에러를 보게된다.
<insert id="testSql" parameterType="map">
INSERT INTO table_name
(test)
(select test from test)
</insert>
<update id="testSql" parameterType="map">
INSERT INTO table_name
(test)
(select test from test)
</update>
insert를 update로 바꿔 주면 된다.
출처: https://blog.fast87.com/132 [하늘과 바람과 별과 코드]
'MyBatis' 카테고리의 다른 글
Failed to parse mapping resource: 'file . The contnet of elements must consist of well-formed character data or markup. (0) | 2019.05.15 |
---|---|
허용되지 않은 작업 mybatis (0) | 2019.05.10 |
이클립스 mybatis 바인딩 로그 log4sql (0) | 2019.01.02 |
[자바,mybatis] org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): (0) | 2018.10.24 |
오라클 스프링 mybatis 부적합한 열 유형 (0) | 2018.03.13 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 자바
- 플러터
- esql
- ocajp
- C
- 인포믹스
- Python
- ocjap
- 파이썬
- 문자열
- C언어
- XE3
- proc
- php
- 라이믹스
- XE
- KG
- xe addon
- xe애드온
- JDBC
- 포인터
- 스크래핑
- 자바 smtp
- 오라클
- 파싱
- 프로씨
- 이클립스
- EC
- webix
- MySQL
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함