【发布时间】:2011-01-23 16:19:44
【问题描述】:
我有这样的疑问
String query = select column1, group by column2 from table1 ...
//What should I write to just get column1 from the query.
getSession().createQuery(query).list();
如何从查询中获取 columne1 列表。
【问题讨论】:
-
我不明白这个问题有什么问题?
-
在我的选择结果中,我有一个 column1 列表并按 column2 结果分组,我如何仅获得 column1 结果。抱歉,如果不清楚。