我接触DLL的时间也不长,对DLL的了解也不是很深,在这里以一个简单的例子说明一下应用程序与DLL是如何工作的,希望给初学者一些帮助。文章附有源码,以编译通过。-I contacted the time is not long, right DLL understanding is not very deep here in a simple examples to illustrate what applications and how the DLL is working, and hopes to give some help beginners. Articles with source code to compile.
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.000884s ]
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.088451s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.000997s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001093s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001034s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003348s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000910s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.006581s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.022835s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.018358s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 126646 [ RunTime:0.024654s ]