org.hibernate.exception.GenericJDBCException: could not execute query
2024-11-25 08:54:01
推荐回答(1个)
回答1:
Query query=session.createSQLQuery("update Kcb set flag='已选' where kch="+kch+" order by kch"); query.executeUpdate(); List list=query.list(); query是SQLQuery 前面指定了update语句,紧接着又调用query的list方法,当然无法执行