< select id="sql_in" parameterclass="myBean" resultclass="Result">
SELECT * FROM table WHERE column IN
<iterate property="items" conjunction="," close=")" open="("/>
#value[]#
</iterate>
and item1 = #item1# and item2 = #item2#
</select>
Entity Bean
myBean
{
private String item1;
private String item2;
private List items;
...
}
沒有留言:
張貼留言