SHOW FULL COLUMNS FROM `maoyu_article_tags` [ RunTime:0.004588s ]
SELECT `id`,`title`,`click_num` FROM `maoyu_article_tags` WHERE `id` = 8 AND `status` = 1 LIMIT 1 [ RunTime:0.001724s ]
SHOW FULL COLUMNS FROM `maoyu_article_tags_mapping` [ RunTime:0.002922s ]
SELECT COUNT(*) AS think_count FROM `maoyu_article_tags_mapping` WHERE `tag_id` = 8 [ RunTime:0.000215s ]
SHOW FULL COLUMNS FROM `maoyu_article` [ RunTime:0.003535s ]
SELECT COUNT(*) AS think_count FROM `maoyu_article` `a` LEFT JOIN `maoyu_article_tags_mapping` `b` ON `b`.`article_id`=`a`.`id` WHERE `a`.`status` = '1' AND `b`.`tag_id` = '8' [ RunTime:0.001338s ]
SELECT `a`.`id`,`a`.`title`,`a`.`picture`,`a`.`desc`,`a`.`click_num`,`a`.`publish_time` FROM `maoyu_article` `a` LEFT JOIN `maoyu_article_tags_mapping` `b` ON `b`.`article_id`=`a`.`id` WHERE `a`.`status` = '1' AND `b`.`tag_id` = '8' LIMIT 20,10 [ RunTime:0.000436s ]
SELECT `b`.`id`,`b`.`title` FROM `maoyu_article_tags_mapping` `a` LEFT JOIN `maoyu_article_tags` `b` ON `a`.`tag_id`=`b`.`id` WHERE `a`.`article_id` = '246' LIMIT 0,3 [ RunTime:0.000342s ]
SELECT `b`.`id`,`b`.`title` FROM `maoyu_article_tags_mapping` `a` LEFT JOIN `maoyu_article_tags` `b` ON `a`.`tag_id`=`b`.`id` WHERE `a`.`article_id` = '267' LIMIT 0,3 [ RunTime:0.000428s ]
SELECT `b`.`id`,`b`.`title` FROM `maoyu_article_tags_mapping` `a` LEFT JOIN `maoyu_article_tags` `b` ON `a`.`tag_id`=`b`.`id` WHERE `a`.`article_id` = '268' LIMIT 0,3 [ RunTime:0.000310s ]
SELECT `b`.`id`,`b`.`title` FROM `maoyu_article_tags_mapping` `a` LEFT JOIN `maoyu_article_tags` `b` ON `a`.`tag_id`=`b`.`id` WHERE `a`.`article_id` = '269' LIMIT 0,3 [ RunTime:0.000294s ]
SELECT `b`.`id`,`b`.`title` FROM `maoyu_article_tags_mapping` `a` LEFT JOIN `maoyu_article_tags` `b` ON `a`.`tag_id`=`b`.`id` WHERE `a`.`article_id` = '270' LIMIT 0,3 [ RunTime:0.000308s ]
SELECT `b`.`id`,`b`.`title` FROM `maoyu_article_tags_mapping` `a` LEFT JOIN `maoyu_article_tags` `b` ON `a`.`tag_id`=`b`.`id` WHERE `a`.`article_id` = '271' LIMIT 0,3 [ RunTime:0.000289s ]
SELECT `b`.`id`,`b`.`title` FROM `maoyu_article_tags_mapping` `a` LEFT JOIN `maoyu_article_tags` `b` ON `a`.`tag_id`=`b`.`id` WHERE `a`.`article_id` = '274' LIMIT 0,3 [ RunTime:0.000333s ]
SELECT `b`.`id`,`b`.`title` FROM `maoyu_article_tags_mapping` `a` LEFT JOIN `maoyu_article_tags` `b` ON `a`.`tag_id`=`b`.`id` WHERE `a`.`article_id` = '280' LIMIT 0,3 [ RunTime:0.000352s ]
SELECT `b`.`id`,`b`.`title` FROM `maoyu_article_tags_mapping` `a` LEFT JOIN `maoyu_article_tags` `b` ON `a`.`tag_id`=`b`.`id` WHERE `a`.`article_id` = '282' LIMIT 0,3 [ RunTime:0.000303s ]
SELECT `b`.`id`,`b`.`title` FROM `maoyu_article_tags_mapping` `a` LEFT JOIN `maoyu_article_tags` `b` ON `a`.`tag_id`=`b`.`id` WHERE `a`.`article_id` = '312' LIMIT 0,3 [ RunTime:0.000313s ]
UPDATE `maoyu_article_tags` SET `click_num` = `click_num` + 1 WHERE `id` = 8 [ RunTime:0.013044s ]
SELECT `id`,`title` FROM `maoyu_article` WHERE `status` = 1 AND `rec` = 1 ORDER BY `click_num` DESC [ RunTime:0.000241s ]