|
SQL语句: - select top 10 a.id,title,adddate,num from ks_article a,(select infoid,count(*) as num from ks_comment where channelid=1 group by infoid)b where a.id=b.infoid order by b.num desc
- select top 10 * from table_article a,(select Oid ,count(*) as num from table_commend where Type(类型字段)=2 group by Oid )b where a.ID(文章编号)=b.Oid(评论表对应文章编号) order by b.num desc
以下内容只有回复后才可以浏览,请先登录!
|