当前位置:首页 > 数据库管理系统技术、应用与实例分析SQL - Server - 2005(第2版)孟宪虎-电子工业出版社-课后实验参考答案[1]
I/O=0.00375+0.000105+0.0375+0.000008+0.0000632=0.014005
Cpu开销=0.000105+0.000105+0.00375+0.0000089+0.0000080+0.000089 =0.00421
实验七
1)比较自动事务模式和显式事务模式执行SQL的不同。 select times=0,* from 员工表
①以自动事务模式执行下面SQL语句 insert into 员工表
values ('2011','杨阳','男','1990-07-20', '1004','销售员',3800)
select times=1,*from 员工表
update 员工表 set 工资=4000
where 员工号='2011'
select times=2,*from 员工表
delete from 员工表 where 员工号='2011' select times=3,*from 员工表
②以显式事务模式执行SQL语句 --进入显式事务模式 begin transaction
insert into 员工表
values ('2011','杨阳','男','1990-07-20', '1004','销售员',3800) select times=4,*from 员工表
共分享92篇相关文档