附加数据库SQL Server 2008(1)将Database文件夹中的两个文件拷贝到SQL Server 2008安装路径下的MSSQL.1MSSQLData文件夹中。(2)打开SQL Server 2008,然后展开本地服务器,在“数据库”数据项上单击鼠标右键,在弹出的快捷菜单中选择“附加”菜单项。(3)将弹出“附加数据库”对话框,在该对话框中单击“”按钮,选择所要附加数据库的.mdf文件,单击“确定”按钮,即可完成数据库的附加操作。
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001776s ]
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.081541s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.000979s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001129s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001026s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003036s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000881s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003807s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.014651s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001154s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 72553 [ RunTime:0.018213s ]