标题:这个子查询怎么用hibernate语法写出来
取消只看楼主
钟子期
Rank: 1
来 自:湖南
等 级:新手上路
帖 子:4
专家分:0
注 册:2013-5-15
结帖率:100%
 问题点数:0 回复次数:0 
这个子查询怎么用hibernate语法写出来
select * from (select SUM(onlinePerson) p, timestamp, marketID from SidOnline group by timestamp, marketID having timestamp<:end and timestamp>=:begin  and  marketID=:marketId) t  where t.p =(
select max(s.p)  from
(select SUM(onlinePerson) p, timestamp, marketID from SidOnline group by timestamp, marketID having timestamp<:end and timestamp>=:begin  and  marketID=:marketId) as s)
搜索更多相关主题的帖子: where having hibernate 
2013-06-05 17:00



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-414594-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.239244 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved