文章id 标签名称
1 php
2 asp
3 jsp
3 php
2 php
1 jsp
......
这样不就行了?
一篇文章可对应多个标签 1=>php,jsp
通过标签查文章(即该标签的文章列表) select 文章id from tbl where tagName='php'
可得到
1 php
2 php
3 php
确定热门标签(即统计标签内文章条数比较多的)
select count(*) as tr from tbl group by tagName order by tr DESC
1 php
2 asp
3 jsp
3 php
2 php
1 jsp
......
这样不就行了?
一篇文章可对应多个标签 1=>php,jsp
通过标签查文章(即该标签的文章列表) select 文章id from tbl where tagName='php'
可得到
1 php
2 php
3 php
确定热门标签(即统计标签内文章条数比较多的)
select count(*) as tr from tbl group by tagName order by tr DESC
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货