把这个转成 hqlselect * from tb t
where   
name='test1'
and time=(select max(time) from tb where name=t.name)  
hqlselect t from tb as t where t.name=? and t.time=(select 
max(t2.time) from tb as t2 where t2.name=t.name)
大家帮我看看错在哪里了 谢谢