티스토리 뷰
마이바티스 이용시 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
- 인포믹스
- xe addon
- php
- 문자열
- 이클립스
- 플러터
- 자바
- ocjap
- 파싱
- webix
- 포인터
- 프로씨
- C언어
- XE3
- KG
- 자바 smtp
- proc
- 라이믹스 모듈
- MySQL
- esql
- XE
- ocajp
- 오라클
- EC
- C
- Python
- xe애드온
- JDBC
- 스크래핑
- 파이썬
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함