在更新查询中,SET后出现错误“(”。请帮助我解决此问题。
String hql = "UPDATE table1 tb1 SET (tb1.col1, tb1.col2, tb1.col3, tb1.col4) = (SELECT tb2.col1, tb2.col2, tb2.col3, tb2.col4 FROM table2 tb2 WHERE tb1.col5 = tb2.col5 AND tb2.col6 = :col6)";
Query query = session.createQuery(hql);
query.setParameter("col6", value);
int results = query.executeUpdate();