是一个用于查询全国列车信息的网页,文件很多,原理不难可以供初学者学习!-for inquiries is a national train information website, many documents, the principle can not be difficult for beginners to learn!
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001435s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.072557s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001224s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001291s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001059s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003262s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000841s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003885s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.014497s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001093s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 302851 [ RunTime:0.010731s ]