如果你对该文章中的内容有疑问/不解,可以点击此处链接提问
要注明问题和此文章链接地址 点击此处跳转
select p.title,p.pic,p.id,p.author, p.time,p.is_ok,count(pz.post_id) c FROM pre_post p,pre_post_zan pz WHERE pz.post_id = p.id and pz.zan=1 group by(pz.post_id) ORDER BY c desc
注:
ORDER BY c desc