实验3:使用SL语句创建并管理数据库、数据表.docVIP

  • 9
  • 0
  • 约 6页
  • 2016-10-17 发布于贵州
  • 举报

实验3:使用SL语句创建并管理数据库、数据表.doc

实验3:使用SL语句创建并管理数据库、数据表

云南大学软件学院 实验报告 修改数据库:将“Employee数据库”的数据库最大容量更改为无限制(UNLIMITED),然后将“Employee数据库”的日志文件增长方式改为2MB。 记录SQL语句。 用T-SQL语句在“Employee数据库”创建数据表,数据表的结构见实验二。 记录创建表的SQL语句。 建表person: 建表salary: 建表department: 修改表结构:将雇员信息表person中,Prof的字段长度改为15。 记录SQL语句。 向表中添加记录,使用Insert Into 语句分别向三张表中添加符合表结构属性的数据记录,要求每张表至少4条记录,并显示所添加的记录数据。 向表person中添加4条记录: 向表salary中添加4条记录: 向表department中添加4条记录: 向雇员信息表person中添加记录 完成如下操作: (1)、修改表中记录:将“王辉”的部门修改为“003”; (2)、删除记录:删除表中性别为“女”的员工记录; (3)、删除表:将“person”从“Employee数据库”中删除。 思考题 如数据库表中存在如下记录: 表department中数据 Deptno Dname 001 营销部 002 财务部 表person中的数据 Pno Pname Sex Birthday Prof Deptno 000001 田林 男 1982-4-7 初级 001 000002 郭达 男 1953-2-14 高级 001 000003 王琳 女 1984-8-25 初级 002 现执行: DELETE FROM department WHERE Depton=“001”,执行结果如何?为什么? 现执行: DELETE FROM department WHERE Depton=“001”,截图如下: 提示错误,原因:将deptno错拼为depton,001应该是用单引号而不是双引号。 修正后执行: 四:实验小结 通过本次实验: 1、掌握查询分析器的使用方法,T-SQL语句的基本使用,DDL语句,DML(Insert, Delete, Update)语句。 2、有些语句指导书上没有,可以通过按F1查看数据库的语句帮助。 3、熟练掌握了通过T-SQL语句来完成一些基本的操作,收获颇丰。 protection design of tall buildings GB50045-95 the construction interior trim design fire protection standard GB50222-95 6, building curtain wall design code for lightning protection lightning protection standard building GB50057-94 7, building curtain wall technical standards for lighting architectural lighting design standard GB/T50033-2001 optical properties of glass curtain wall GB/ T18091-2000 8, physical inspection and technical standards of architectural curtain wall construction performance testing method for in-plane deformation of curtain wall GB/T18250-2000 classification GB/T15225-94 wind pressure of building curtain wall building curtain wall physical properties deformation performance test method GB/T15227-94 curtain GB/T15226-94 curtain air p

文档评论(0)

1亿VIP精品文档

相关文档