You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Paul Spencer <pa...@apache.org> on 2010/03/31 15:09:54 UTC

How to implement in SelectBuilder?

I am use the SelectBuilder to generate query statement.  I have a need to generate an IN clause.  If I where to do this using sql-map.xml, I would use a <foreach>.
   WHERE ID in <foreach item="item" index="index" collection="list"
                 open="(" separator="," close=")"> #{item}
               < /foreach>

What is the equivalent in SqlBuilder?

Paul Spencer
---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org