帝国cms调用信息按收藏数排序SQL
SQL:
select a.id,a.classid,a.title,a.titlepic,a.username,a.
userid,a.applynum,a.onclick,a.titleurl,b.id,b.classid,co
unt(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
本站资源均来自互联网或会员发布,如果不小心侵犯了您的权益请与我们联系。我们将立即删除!谢谢!