n 计算机科学、 二进制搜索或半区间搜索算法发现指定输入值 (搜索"钥匙") 按关键值排序的数组中的位置。[] 1[2] 为二进制搜索数组应安排在升序或降序排序。在每个步骤中,算法将数组的中间元素的键值搜索关键值进行比较。如果密钥匹配,然后已找到匹配的元素,并返回其索引或位置。否则为如果搜索键小于中间 element 键,则该算法重复中间元素的子数组向左其行动或者,如果搜索键较大,向右子阵列上。如果要搜索的剩余的数组为空,然后不能在数组中找到的键,并返回一个特别的"未找到"的征兆。
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001957s ]
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.092599s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001090s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001231s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.000977s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003366s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000826s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003829s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.016301s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001149s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 79494 [ RunTime:0.014512s ]