250x250
Notice
Recent Posts
Recent Comments
Link
목록xml (2)
Chanho_Park
[Oracle] isEqual , isNotEmpty
equals 는 isNotEmpty 보다 효율이 떨어진다. isNotEmpty를 사용할 때 여러개를 비교할때는 iBatis 에서 isEmpty/isNotEmpty 를 이용하여 multiple property 로 처리하는 예제 (아래) 멀티 nested tag 를 사용하여 해결 가능합니다. select * from table where date_start >= #startDate# AND date_end >
Study
2023. 2. 10. 15:47
[mybatis] spring xml 에서 다양한 작성법
검색을 사용할 때 '%keyword%' 이렇게 작성하는 법 select count(*) from client where code like '%' || #{keyword} || '%' where category like '%' || #{keyword} || '%' String[] 이나 Arraylist 등을 보내서 반복문 사용법 Collection : 형태를 적어준다. 배열이나 Array 는 array item : 바꿀 변수를 적어준다. open : 반복문을 시작하기전에 작성할 것 close : 반복문을 끝나고 나서 작성할 것 separator : 반복 배열 사이에 넣어줄 문자 delete client where no in #{arr} 이렇게 작성하게 되면 delete client where no in (..
Spring/mybatis
2022. 11. 14. 23:01