티스토리 뷰
DB
[Mybatis] The content of elements must consist of well-formed character data or markup (<![CDATA ]]> , <) 사용하기
나뜨루다 2021. 7. 9. 15:27728x90
mybatis에서 비교 연산자 사용하는 중에 특수문자 에러 발생
<select id="selectA" resultMap="MemberResultMap">
select *
from A
where year < 2020
</select>
error : The content of elements must consist of well-formed character data or markup.
해결방법
1. <![CDATA ]]> 사용
<select id="selectA" resultMap="MemberResultMap">
select *
from A
where year <![CDATA < ]]> 2020
</select>
2. < 사용
<select id="selectA" resultMap="MemberResultMap">
select *
from A
where year < 2020
</select>
> | > |
< | < |
>= | >= |
<= | <= |
참고 :
'DB' 카테고리의 다른 글
[PostgreSQL]Error updating database. Cause: org.postgresql.util.PSQLException: 오류: 릴레이션(relation) 접근 권한 없음 (0) | 2021.10.08 |
---|---|
[PostgreSQL] DATE / TIME 다루기 (0) | 2021.09.02 |
[SQL] where절 1=0 (false) 사용예제 (0) | 2021.07.09 |
[Oracle] 다중 LIKE OR / REGEXP_LIKE // IN (2) | 2021.06.29 |
[Oracle] ORA-01481: 숫자 형식 모델이 부적합합니다 (2) | 2021.06.02 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- swift 메모장 만들기
- file drag drop
- MSsql
- ios app 개발
- jsignature.min.js
- xcode swift memo
- 달력기능개발
- draganddrop file
- xcode12.5.1
- jxls
- js 전자서명
- jxls 엑셀
- fullcalendar js
- swift 계산기
- js달력
- js file drag
- spring annotation
- Xcode
- 트리구조jstree
- Oracle
- js라이브러리사용
- 전자서명개발
- for in 주의
- Swift
- 전자서명기능구현
- https://www.jstree.com/
- for in문제
- js라이브러리
- mysql
- PostgreSQL
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함