hibernate bulkupdate: update query syntax

Posted by QuanNH on Stack Overflow See other posts from Stack Overflow or by QuanNH
Published on 2010-03-23T04:30:44Z Indexed on 2010/03/23 4:51 UTC
Read the original article Hit count: 234

Filed under:

when i update a table using hibernate

getHibernateTemplate().bulkUpdate("UPDATE Channel SET number = 40 AND active = 0");

i get error: ERROR [PARSER]: unexpected token: AND

evething run well if i remove AND active = 0

i dont know how to correct this query.

help me pls, thanks :)

© Stack Overflow or respective owner

Related posts about hibernate