0

我需要得到正确的 HQL 查询而不是下面的 SQL 查询。

select * from question where qid >=all (select qid from Question where uid = 1);

我想我们不能在 HQL 中使用 >=all() 。如果我错了,请纠正我。并为上述 SQL 查询提供正确的 HQL 查询。

等待回复...帮助。

4

1 回答 1

1

Hibernate 以您概述的方式支持所有运算符/表达式.. http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/queryhql.html#queryhql-expressions

于 2012-07-08T14:47:08.483 回答