haitao: 大概意思 [阅读: 439] 2008-01-21 06:47:47 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 )