现在的位置: 首页 > 综合 > 正文

Discuz查询标签及带此标签的帖子总数

2013年08月22日 ⁄ 综合 ⁄ 共 170字 ⁄ 字号 评论关闭

SQL语句:

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

抱歉!评论已关闭.