<insert>나 <select> 등에서
<iterate>를 이용하여 리스트를 동적으로 sql 문에 넣을 수 있다.
<iterate>를 이용하여 리스트를 동적으로 sql 문에 넣을 수 있다.
| <iterate prepend="AND" property="UserNameList"  open="(" close=")" conjunction="OR"> 
  username=#UserNameList[]# 
</iterate> 
[링크 : https://ibatis.apache.org/docs/dotnet/datamapper/ch03s09.html]  | 
[링크 : http://blog.naver.com/cain007/170076719]
'프로그램 사용 > ibatis & mybatis' 카테고리의 다른 글
| ibatis select sum() resultType / resultClass (0) | 2014.05.29 | 
|---|---|
| ibatis null (0) | 2014.05.29 | 
| ibatis / mybatis 데이터가 비어있는 경우(null) (0) | 2014.05.23 | 
| ibatis namespace (2) | 2014.05.22 | 
| ibatis2 map (0) | 2014.05.21 | 
