haitao · 2008-01-21 14:47:47 · 阅读: 463 大概意思 select * from tb where rootid in ( select top 10 rootid ( select rootid,max(messageid) as flast from tb group by rootid ) a order by flast desc )