DB
Oracle 에서 Mybatis 부등호 오류
최데브
2020. 6. 21. 18:38
The content of elements must consist of well-formed character data or markup. 라는 오류가 발생했다.
Mybatis는 XML에 정의하기 때문에 부등호를 그냥 쓰면 오류가 나는 이유였다.
해결방법은 <![CDATA[]]>로 감싸주자 !
delete from tb_log_actions
<![CDATA[
where reg_dt < (select MIN(reg_dt) from (
select reg_dt
from tb_log_actions
order by reg_dt DESC limit 100) a)
]]>
이렇게 써주면 된다!