在HQL上使用最小值,最大值和计数 [英] Using Min, Max and Count on HQL
本文介绍了在HQL上使用最小值,最大值和计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
像
hibernate hql查询是否支持select min,max,count和其他sql函数? > select min(p.age)
from person p
谢谢
解决方案
是, min()
, max()
和 count )
在HQL中受支持。
请参阅 Hibernate Doc中的聚合函数。
Does hibernate HQL queries support using select min, max, count and other sql functions?
like
select min(p.age) from person p
Thanks
解决方案
Yes, min()
, max()
and count()
are supported in HQL.
see aggregate functions in the Hibernate Doc.
这篇关于在HQL上使用最小值,最大值和计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文