首页 > CMS > 帝国Empire > 正文

帝国CMS调用信息按收藏数排序SQL

2024-08-28 12:25:23
字体:
来源:转载
供稿:网友
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) from phome_ecms_news as a left join phone_enewsfava as b on a.id=b.id and a.classid=b.classid where a.classid=1 and a.ispic=1 group by a.id order by count(b.id) DESC limit 5
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表