최데브는 오늘도 프로그래밍을 한다.

Oracle 에서 Mybatis 부등호 오류 본문

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)

    ]]>        

 

 

이렇게 써주면 된다!



반응형

'DB' 카테고리의 다른 글

Mysql sql 기본 쿼리문 (insert , select , update, delete)  (0) 2021.04.04
Mysql turncate + foreign key  (0) 2020.06.29
Oracle - 검색 기능 쿼리  (0) 2020.06.27
jpa  (0) 2020.04.15
Comments