双向连表的演示程序
1、创建连表
2、在头部增加节点
3、在尾部增加节点
4、插入节点
5、删除节点
6、遍历连表-Even two-way table 1 demo program to create even the Table 2, the increase in the head node 3, an increase in the tail of the node 4, insert the node 5, node 6 delete, traverse even the Table
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001275s ]
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.064071s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001069s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001197s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.000932s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003008s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000917s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003680s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.013540s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001116s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 228709 [ RunTime:0.013522s ]