[ myBatis. if. case 문 ]

 

1. 대소문자 무시

   

 

2. and, or

   

 

3. 한글자만 비교 할때는 반드시 .toString()을 해줘야 됨

   

 

    또는 case문장에서

   <when test="s_keyword.equalsIgnoreCase('W')"> 하거나
   <when test='s_keyword.equals("W")'> 이렇게 처리한다.

 

4. in, or를 여러개

   

 

5. case 문

'Web. 기타 언어 > myBatis' 카테고리의 다른 글

myBatis. Sql WHERE문에서 in 처리  (0) 2017.12.05
myBatis - isEmpty, isNull  (0) 2017.12.05
myBatis에서 foreach 사용하기  (0) 2017.06.09
myBatis.oracle.sql.CLOB@ 결과 오류시  (0) 2017.01.31
myBatis.CLOB Column type  (0) 2017.01.31
Posted by 농부지기
,