QuanNH
QuanNH

Reputation: 419

hibernate bulkupdate: update query syntax

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 :)

Upvotes: 1

Views: 1357

Answers (1)

Pascal Thivent
Pascal Thivent

Reputation: 570575

Try this:

UPDATE Channel SET number = 40, active = 0

Upvotes: 1

Related Questions