数据库基本语言代码.docVIP

  • 3
  • 0
  • 约2.39千字
  • 约 6页
  • 2017-01-25 发布于重庆
  • 举报
数据库基本语言代码

学习目标: 1、了解SqlServer2005的数据备份和恢复操作(附加方式) 2、熟练掌握Sql Server2005的基本查询 项目内容: 1、mdf文件及log文件在SqlServer2005中的导入操作; 2、Sql Server2005基本查询(单表查询、多表联合查询); 实验过程: 数据库附加操作的基本步骤(截图) 基本查询(操作语句及截图) 题目1、列出计算机系学生的学号、姓名和年龄,查询结果按年龄降序排列; use test select sno,sname,sage from student where student.sdept=cs order by sage desc 题目2、统计计算机系(CS)学生的个数和平均年龄; use test select count(*) 计算机系学生的个数,avg(sage) 平均年龄from student where student.sdept=cs use test select *from student where sage=(select max(sage)from student) use test select *from student where sage=(select min(sage)from student) use test select *from student w

文档评论(0)

1亿VIP精品文档

相关文档