SHOW FULL COLUMNS FROM `maoyu_article_tags` [ RunTime:0.002264s ]
SELECT `id`,`title`,`click_num` FROM `maoyu_article_tags` WHERE `id` = 1 AND `status` = 1 LIMIT 1 [ RunTime:0.002041s ]
SHOW FULL COLUMNS FROM `maoyu_article_tags_mapping` [ RunTime:0.004682s ]
SELECT COUNT(*) AS think_count FROM `maoyu_article_tags_mapping` WHERE `tag_id` = 1 [ RunTime:0.002645s ]
SHOW FULL COLUMNS FROM `maoyu_article` [ RunTime:0.003151s ]
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` = '1' [ RunTime:0.005546s ]
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` = '1' LIMIT 20,10 [ RunTime:0.001706s ]
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` = '285' LIMIT 0,3 [ RunTime:0.002524s ]
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` = '292' LIMIT 0,3 [ RunTime:0.001421s ]
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` = '316' LIMIT 0,3 [ RunTime:0.001029s ]
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` = '321' LIMIT 0,3 [ RunTime:0.001101s ]
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` = '332' LIMIT 0,3 [ RunTime:0.001169s ]
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` = '340' LIMIT 0,3 [ RunTime:0.000902s ]
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` = '353' LIMIT 0,3 [ RunTime:0.000608s ]
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` = '407' LIMIT 0,3 [ RunTime:0.000894s ]
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` = '408' LIMIT 0,3 [ RunTime:0.000921s ]
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` = '412' LIMIT 0,3 [ RunTime:0.001033s ]
UPDATE `maoyu_article_tags` SET `click_num` = `click_num` + 1 WHERE `id` = 1 [ RunTime:0.023097s ]
SELECT `id`,`title` FROM `maoyu_article` WHERE `status` = 1 AND `rec` = 1 ORDER BY `click_num` DESC [ RunTime:0.002241s ]