1
A
回答
5
是的。 HQL支持DISTINCT
關鍵字。
SELECT DISTINCT a.createDate FROM Article a
我建議您命名實體Article
(而不是articles
),並使用駝峯(而不是under_score)
+0
謝謝,謝謝,謝謝! – glebreutov 2010-04-20 21:00:55
的可能重複http://stackoverflow.com/questions/263850/how-do -you-create-a-distinct-query-in-hql – extraneon 2010-04-20 18:09:34