需要在mysql中解决记录的分组统计.排序,并抽取前10条记录的功能.现已解决,解决方案如下: 1)表结构 CREATE TABLE `policy_keywords_rel` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID', `content_id` int(11) NOT NULL COMMENT '文章id', `keyword_id` int(11) NOT NULL COMMENT '关键词id', `cnt` int(11)…