二维码
搬瓦工 locvps

SQL:

 select a.id,a.classid,a.title,a.titlepic,a.username,a.userid,a.applynum,a.onclick,a.titleurl,b.id,b.classid,count(b.id) fromphome_ecms_news as a left join phone_enewsfava as b on a.id=b.id and a.classid=b.classid where a.classid=1 anda.ispic=1 group by a.id order by count(b.id) DESC limit 5

其中的信息表、栏目id等条件可以根据自己的需求来调整!


locvps
评论专区
  • 昵 称必填
  • 邮 箱必填
  • 网 址选填
◎已有 0 人评论
BudgetVM
作者介绍
总干事

总干事

总干事作为本站编辑,主要负责VPS优惠、域名优惠和站长百科三个栏目。
80vps henghost
30天热门
budgetvm sugarhosts
二维码

分享:

支付宝

微信