使用数据库SQL Server 2000(1)将Database文件夹中的扩展名为.MDF和.LDF的两个文件拷贝到SQL Server安装路径下的Data文件夹中。(2)打开SQL Server 2000中的“企业管理器”,然后展开本地服务器,在“数据库”数据项上单击鼠标右键,在弹出的快捷菜单中选择“所有任务”/“附加数据库”菜单项。(3)将弹出“附加数据库”对话框,在该对话框中单击【】按钮,选择所要附加数据库的.MDF文件,单击【确定】按钮,即可完成数据库的附加操作。
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001099s ]
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.081312s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.008604s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001189s ]
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.003268s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.001002s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.006239s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.022306s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001695s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 79428 [ RunTime:0.013530s ]