mybatis – MyBatis 3 | Dynamic SQL
The foreach element is very powerful, and allows you to specify a collection, declare item and index variables that can be used inside the body of the element. It also allows you to specify opening and closing strings, and add a separator to place in between iterations. The element is smart in that it won’t accidentally append extra separators.
DA: 58 PA: 42 MOZ Rank: 4