select top 5 * from news where newsid in (select top 5 max(newsid) as newsid from news group by classid) order by addtime desc
每类取前五
最新推荐文章于 2022-05-23 11:18:25 发布
select top 5 * from news where newsid in (select top 5 max(newsid) as newsid from news group by classid) order by addtime desc