首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

hql如何执行不了.

2012-01-23 
hql怎么执行不了...在线等Object[] params new Object[]{normalScore,midtermScore,terminalScore,exper

hql怎么执行不了...在线等
Object[] params = new Object[]{normalScore,midtermScore,terminalScore,experimentScore,totalScore,remark,studentId};
String hql = "update MarkAssociation ma set ma.normalScore=? and ma.midtermScore=? and ma.terminalScore=? and ma.experimentScore=? and ma.totalScore=? and ma.remark=? where ma.student.studentId=?" ;
this.updateByQuery(hql,params);

[解决办法]
HQL写错了吧
update MarkAssociation ma set ma.normalScore=? , ma.midtermScore=? , ma.terminalScore=? and ma.experimentScore=? , ma.totalScore=?, ma.remark=? where ma.student.studentId=?
[解决办法]

探讨
Object[] params = new Object[]{normalScore,midtermScore,terminalScore,experimentScore,totalScore,remark,studentId};
String hql = "update MarkAssociation ma set ma.normalScore=? and ma.midtermScore=? ……

[解决办法]
探讨

HQL写错了吧
update MarkAssociation ma set ma.normalScore=? , ma.midtermScore=? , ma.terminalScore=? and ma.experimentScore=? , ma.totalScore=?, ma.remark=? where ma.student.studentId=?

热点排行