通过本实验加深对SQL Server 2000环境下数据定义语言的理解,能够熟练地建立数据库,并通过SQL语句来建立一个新的SQL Server设备管理数据库,使用SQL的数据定义功能建立数据库中的各个基本表(共3个),并按要求对有关表进行修改。 每次操作后通过企业管理器查看有关对象的变化。创建和修改基本表、创建和取消索引。
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001012s ]
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.087376s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.000935s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001171s ]
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.003202s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000996s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.004447s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.016219s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001194s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 465021 [ RunTime:0.020846s ]