Discuz查詢標籤及帶此標籤的帖子總數

SQL語句:git select t.*,count(ti.tagname) as icount from pre_common_tag as t,pre_common_tagitem as ti where ti.tagname!=' ' and t.tagid=ti.tagid and t.status=0 group by ti.tagname order by icount desc
相關文章
相關標籤/搜索