摘要: 转账事务与存储过程一、实验目的:1.掌握事务操作2.掌握存储过程的应用 二、实验内容:1、先建立数据环境(帐户表)create table 帐户表(帐户编号 char(4) primary key,帐户名 char(4),金额 int)goinsert 帐户表 val... 阅读全文
posted @ 2007-12-19 09:41 涛涌四海 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 使用CASE结构进行查询结果分类例题1:select zkzh 准考证号,xm 姓名,总成绩= case when zcj=0 then '不及格' when zcj=1 then '及格' when zcj=2 then '良好' ... 阅读全文
posted @ 2007-12-19 09:08 涛涌四海 阅读(126) 评论(0) 推荐(0) 编辑
摘要: SQL Server 2000 事务操作1.事务操作实例一--事务开始begin transaction insert student(sno,sname,ssex,sage,sdept) values('200200005','王五','男',20... 阅读全文
posted @ 2007-12-19 08:44 涛涌四海 阅读(265) 评论(0) 推荐(0) 编辑