0

我在数据库中有 3 个表。

我想做这样的连接查询:

from Installment i 
join Payment p on i.vcode=p.Installment_Vcode and p.vcode=:vcode

但是当我运行它时会发生此错误:

unexpected token: on near line 1, column 47 [from information.Installment i join Payment p on i.vcode=p.Installment_Vcode]
4

1 回答 1

2

HQL 没有on运算符。连接只能在实体之间的关联上完成,并且可以有一个可选with子句。

于 2012-07-24T11:02:31.680 回答