ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Barry <pauljbar...@gmail.com>
Subject Re: using #value[]#
Date Thu, 09 Jun 2005 21:09:02 GMT
This works, thanks.

On 6/9/05, Brandon Goodin <brandon.goodin@gmail.com> wrote:
>   <select id="findCountsBySession" parameterClass="list" resultMap="counts">
>   SELECT
>     session_id as id, count(*) count
>   FROM
>     events
>   <dynamic prepend="WHERE">
>       <iterate prepend="session_id IN" open="("
> close=")" conjunction=",">
>         #[]#
>       </iterate>
>   </dynamic>
>   GROUP BY
>     session_id
>  </select>
>

Mime
View raw message