This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes iBatis Dynamic update queries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "iBatis Dynamic update queries" Watch "iBatis Dynamic update queries" New topic
Author

iBatis Dynamic update queries

venkat penmatsa
Greenhorn

Joined: Jul 23, 2011
Posts: 17
Hi All,

I am trying to run the below ibatis update query , but i am getting binding exception , please check and let me whether the below query is proper or not and also post some examples of update queries having foreach or iterate loop.

<update id=update" parameterType="com.ParamType">

UPDATE t_sample_data SET FLAG='Y'

WHERE ID in

<foreach item="Id" index="index" collection="Ids"

open="(" separator="," close=")">#{Id}

</foreach>

</update>


Thanks in Advance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: iBatis Dynamic update queries
 
Similar Threads
iBATIS
How to Pass a List/Map Through the iBatis to the Database?
Retrieve next resultset
Ibatis Query Returns null
save "${Value}" in a scriptlet :-/