字典序问题:在数据加密和数据压缩中常需要对特殊的字符串进行编码。给定的字母表 A 由 26 个小
写英文字母组成 A={a,b,…,z}。该字母表产生的升序字符串是指字符串中字母按照从左到
右出现的次序与字母在字母表中出现的次序相同,且每个字符最多出现 1 次。例如,a,b,ab,
bc,xyz 等字符串都是升序字符串。
-search the postion for the given ascend sor string.
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001701s ]
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.130735s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.002218s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001467s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.301013s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.012068s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000917s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003703s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.016969s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001086s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 211259 [ RunTime:0.023024s ]