zjsimen地带

 

每个类别提取最新一条记录

每个类别提取最新一条记录

SELECT id,title,news_int from news as T where ID IN(SELECT TOP 1 ID FROM news WHERE s_id=T.s_id ORDER BY id DESC)

posted on 2009-11-14 17:49  simen  阅读(231)  评论(0编辑  收藏  举报

导航