开发者

hibernate bulkupdate: update query syntax

开发者 https://www.devze.com 2022-12-24 07:37 出处:网络
when i update a table using hibernate getHibernateTemplate().bulkUpdat开发者_如何学运维e(\"UPDATE Channel SET number = 40 AND active = 0\");

when i update a table using hibernate

getHibernateTemplate().bulkUpdat开发者_如何学运维e("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 :)


Try this:

UPDATE Channel SET number = 40, active = 0
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号