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
本文介绍了一种使用SQL进行标签统计的方法,通过连接预定义的标签表和标签项表,筛选出有效的标签名称,并按出现次数降序排列。
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
被折叠的 条评论
为什么被折叠?